window.__require = function e(t, i, a) {
function o(s, c) {
if (!i[s]) {
if (!t[s]) {
var r = s.split("/");
r = r[r.length - 1];
if (!t[r]) {
var l = "function" == typeof __require && __require;
if (!c && l) return l(r, !0);
if (n) return n(r, !0);
throw new Error("Cannot find module '" + s + "'");
}
s = r;
}
var d = i[s] = {
exports: {}
};
t[s][0].call(d.exports, function(e) {
return o(t[s][1][e] || e);
}, d, d.exports, e, t, i, a);
}
return i[s].exports;
}
for (var n = "function" == typeof __require && __require, s = 0; s < a.length; s++) o(a[s]);
return o;
}({
ADS: [ function(e, t) {
"use strict";
cc._RF.push(t, "a9ee2hoXXlEt5SSsWLWRJbC", "ADS");
e("../AnyThinkAds/ATJSSDK");
var i = function() {
function e() {}
e.prototype.initAds = function() {
cc.sys.isNative && ATJSSDK.initSDK("a6098dcc2b65d5", "f0b22d9a956154f3d71568d05d015fda");
var e = {
onRewardedVideoAdLoaded: function(e) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdLoaded(" + e + ")");
},
onRewardedVideoAdFailed: function(e, t) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdFailed(" + e + ", " + t + ")");
},
onRewardedVideoAdPlayStart: function(e, t) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayStart(" + e + ", " + t + ")");
},
onRewardedVideoAdPlayEnd: function(e, t) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayEnd(" + e + ", " + t + ")");
},
onRewardedVideoAdPlayFailed: function(e, t, i) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed(" + e + ", " + t + ", " + i + ")");
},
onRewardedVideoAdClosed: function() {
Video.loadAds();
},
onRewardedVideoAdPlayClicked: function(e, t) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayClicked(" + e + ", " + t + ")");
},
onReward: function(e, t) {
Video.cb(e, t);
}
};
cc.sys.isNative && ATRewardedVideoJSSDK.setAdListener(e);
};
return e;
}();
t.exports.ADS = new i();
cc._RF.pop();
}, {
"../AnyThinkAds/ATJSSDK": "ATJSSDK"
} ],
ATAndroidBannerJS: [ function(e, t) {
"use strict";
cc._RF.push(t, "6108fkDKUlHXokPET14CQTc", "ATAndroidBannerJS");
var i = "com/anythink/cocosjs/ATBannerJSBridge", a = a || {
loadBanner: function(e, t) {
cc.log("Android-loadBanner:" + t);
jsb.reflection.callStaticMethod(i, "load", "(Ljava/lang/String;Ljava/lang/String;)V", e, t);
},
setAdListener: function(e) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(i, "setAdListener", "(Ljava/lang/String;)V", e);
},
hasAdReady: function(e) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(i, "isAdReady", "(Ljava/lang/String;)Z", e);
},
checkAdStatus: function(e) {
cc.log("Android-checkAdStatus:" + e);
return jsb.reflection.callStaticMethod(i, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", e);
},
showAdInPosition: function(e, t) {
cc.log("Android-showAdInPosistion");
jsb.reflection.callStaticMethod(i, "showWithPosition", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", e, t, "");
},
showAdInPositionAndScenario: function(e, t, a) {
cc.log("Android-showAdInPositionAndScenario");
jsb.reflection.callStaticMethod(i, "showWithPosition", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", e, t, a);
},
showAdInRectangle: function(e, t) {
cc.log("Android-showAdInRectangle");
jsb.reflection.callStaticMethod(i, "showWithRect", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", e, t, "");
},
showAdInRectangleAndScenario: function(e, t, a) {
cc.log("Android-showAdInRectangleAndScenario");
jsb.reflection.callStaticMethod(i, "showWithRect", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", e, t, a);
},
removeAd: function(e) {
cc.log("Android-removeAd");
jsb.reflection.callStaticMethod(i, "remove", "(Ljava/lang/String;)V", e);
},
reShowAd: function(e) {
cc.log("Android-reShowAd");
jsb.reflection.callStaticMethod(i, "reshow", "(Ljava/lang/String;)V", e);
},
hideAd: function(e) {
cc.log("Android-hideAd");
jsb.reflection.callStaticMethod(i, "hide", "(Ljava/lang/String;)V", e);
}
};
t.exports = a;
cc._RF.pop();
}, {} ],
ATAndroidInterstitialJS: [ function(e, t) {
"use strict";
cc._RF.push(t, "1fd61+66xdNSL8XlWOwr4Tn", "ATAndroidInterstitialJS");
var i = "com/anythink/cocosjs/ATInterstitialJSBridge", a = a || {
loadInterstitial: function(e, t) {
cc.log("Android-loadInterstitial");
jsb.reflection.callStaticMethod(i, "load", "(Ljava/lang/String;Ljava/lang/String;)V", e, t);
},
setAdListener: function(e) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(i, "setAdListener", "(Ljava/lang/String;)V", e);
},
hasAdReady: function(e) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(i, "isAdReady", "(Ljava/lang/String;)Z", e);
},
checkAdStatus: function(e) {
cc.log("Android-checkAdStatus:" + e);
return jsb.reflection.callStaticMethod(i, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", e);
},
showAd: function(e) {
cc.log("Android-showAd:" + e);
jsb.reflection.callStaticMethod(i, "show", "(Ljava/lang/String;)V", e);
},
showAdInScenario: function(e, t) {
cc.log("Android-showAdInScenario:" + e + "---" + t);
jsb.reflection.callStaticMethod(i, "show", "(Ljava/lang/String;Ljava/lang/String;)V", e, t);
}
};
t.exports = a;
cc._RF.pop();
}, {} ],
ATAndroidJS: [ function(e, t) {
"use strict";
cc._RF.push(t, "a6ea3KvtXZC5IrsLlPY9jLb", "ATAndroidJS");
var i = "com/anythink/cocosjs/ATJSBridge", a = a || {
printJsLog: function(e) {
null != e && null != e && jsb.reflection.callStaticMethod("android/util/Log", "i", "(Ljava/lang/String;Ljava/lang/String;)I", "AT-Cocos-JS", e);
},
initSDK: function(e, t) {
jsb.reflection.callStaticMethod(i, "initSDK", "(Ljava/lang/String;Ljava/lang/String;)V", e, t);
},
initCustomMap: function(e) {
jsb.reflection.callStaticMethod(i, "initCustomMap", "(Ljava/lang/String;)V", e);
},
setPlacementCustomMap: function(e, t) {
jsb.reflection.callStaticMethod(i, "setPlacementCustomMap", "(Ljava/lang/String;Ljava/lang/String;)V", e, t);
},
setGDPRLevel: function(e) {
jsb.reflection.callStaticMethod(i, "setGDPRLevel", "(I)V", e);
},
getGDPRLevel: function() {
return jsb.reflection.callStaticMethod(i, "getGDPRLevel", "()I");
},
getUserLocation: function(e) {
jsb.reflection.callStaticMethod(i, "getUserLocation", "(Ljava/lang/String;)V", e);
},
showGDPRAuth: function() {
jsb.reflection.callStaticMethod(i, "showGDPRAuth", "()V");
},
setLogDebug: function(e) {
jsb.reflection.callStaticMethod(i, "setLogDebug", "(Z)V", e);
},
deniedUploadDeviceInfo: function(e) {
jsb.reflection.callStaticMethod(i, "deniedUploadDeviceInfo", "(Ljava/lang/String;)V", e);
}
};
t.exports = a;
cc._RF.pop();
}, {} ],
ATAndroidNativeJS: [ function(e, t) {
"use strict";
cc._RF.push(t, "c4132RDxa9FfYP5JK2rXRMi", "ATAndroidNativeJS");
var i = "com/anythink/cocosjs/ATNativeJSBridge", a = a || {
loadNative: function(e, t) {
cc.log("Android-loadNative");
jsb.reflection.callStaticMethod(i, "load", "(Ljava/lang/String;Ljava/lang/String;)V", e, t);
},
setAdListener: function(e) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(i, "setAdListener", "(Ljava/lang/String;)V", e);
},
hasAdReady: function(e) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(i, "isAdReady", "(Ljava/lang/String;)Z", e);
},
checkAdStatus: function(e) {
cc.log("Android-checkAdStatus:" + e);
return jsb.reflection.callStaticMethod(i, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", e);
},
showAd: function(e, t) {
cc.log("Android-showAd");
jsb.reflection.callStaticMethod(i, "show", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", e, t, "");
},
showAdInScenario: function(e, t, a) {
cc.log("Android-showAdInScenario");
jsb.reflection.callStaticMethod(i, "show", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", e, t, a);
},
removeAd: function(e) {
cc.log("Android-removeAd");
jsb.reflection.callStaticMethod(i, "remove", "(Ljava/lang/String;)V", e);
}
};
t.exports = a;
cc._RF.pop();
}, {} ],
ATAndroidRewardedVideoJS: [ function(e, t) {
"use strict";
cc._RF.push(t, "2231cBNToBAM6WfRu4nF8gw", "ATAndroidRewardedVideoJS");
var i = "com/anythink/cocosjs/ATRewardedVideoJSBridge", a = a || {
loadRewardedVideo: function(e, t) {
cc.log("Android-loadRewardedVideo");
jsb.reflection.callStaticMethod(i, "load", "(Ljava/lang/String;Ljava/lang/String;)V", e, t);
},
setAdListener: function(e) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(i, "setAdListener", "(Ljava/lang/String;)V", e);
},
hasAdReady: function(e) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(i, "isAdReady", "(Ljava/lang/String;)Z", e);
},
checkAdStatus: function(e) {
cc.log("Android-checkAdStatus:" + e);
return jsb.reflection.callStaticMethod(i, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", e);
},
showAd: function(e) {
cc.log("Android-rv_showAd:" + e);
jsb.reflection.callStaticMethod(i, "show", "(Ljava/lang/String;)V", e);
},
showAdInScenario: function(e, t) {
cc.log("Android-rv_showAdInScenario:" + e + "---" + t);
jsb.reflection.callStaticMethod(i, "show", "(Ljava/lang/String;Ljava/lang/String;)V", e, t);
}
};
t.exports = a;
cc._RF.pop();
}, {} ],
ATBannerJSSDK: [ function(e, t) {
"use strict";
cc._RF.push(t, "378b2cYWLtIu6U20RO7/RGT", "ATBannerJSSDK");
var i = e("./Android/ATAndroidBannerJS"), a = e("./iOS/ATiOSBannerJS"), o = cc.sys.os === cc.sys.OS_IOS ? a : cc.sys.os === cc.sys.OS_ANDROID ? i : void 0, n = n || {
kATBannerAdLoadingExtraBannerAdSizeStruct: "banner_ad_size_struct",
kATBannerAdShowingPositionTop: "top",
kATBannerAdShowingPositionBottom: "bottom",
kATBannerAdInlineAdaptiveWidth: "inline_adaptive_width",
kATBannerAdInlineAdaptiveOrientation: "inline_adaptive_orientation",
kATBannerAdInlineAdaptiveOrientationCurrent: 0,
kATBannerAdInlineAdaptiveOrientationPortrait: 1,
kATBannerAdInlineAdaptiveOrientationLandscape: 2,
kATBannerAdAdaptiveWidth: "adaptive_width",
kATBannerAdAdaptiveOrientation: "adaptive_orientation",
kATBannerAdAdaptiveOrientationCurrent: 0,
kATBannerAdAdaptiveOrientationPortrait: 1,
kATBannerAdAdaptiveOrientationLandscape: 2,
ATBannerListener: {
developerCallback: null,
onBannerAdLoaded: function(e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdLoaded && null != this.developerCallback.onBannerAdLoaded && this.developerCallback.onBannerAdLoaded(e);
},
onBannerAdLoadFail: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onBannerAdLoadFail && null != this.developerCallback.onBannerAdLoadFail && this.developerCallback.onBannerAdLoadFail(e, t);
},
onBannerAdShow: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onBannerAdShow && null != this.developerCallback.onBannerAdShow && this.developerCallback.onBannerAdShow(e, t);
},
onBannerAdClick: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onBannerAdClick && null != this.developerCallback.onBannerAdClick && this.developerCallback.onBannerAdClick(e, t);
},
onBannerAdAutoRefresh: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onBannerAdAutoRefresh && null != this.developerCallback.onBannerAdAutoRefresh && this.developerCallback.onBannerAdAutoRefresh(e, t);
},
onBannerAdAutoRefreshFail: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onBannerAdAutoRefreshFail && null != this.developerCallback.onBannerAdAutoRefreshFail && this.developerCallback.onBannerAdAutoRefreshFail(e, t);
},
onBannerAdCloseButtonTapped: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onBannerAdCloseButtonTapped && null != this.developerCallback.onBannerAdCloseButtonTapped && this.developerCallback.onBannerAdCloseButtonTapped(e, t);
}
},
loadBanner: function(e, t) {
void 0 === t && (t = {});
if (null != o && null != o) {
if (t.hasOwnProperty(n.kATBannerAdLoadingExtraBannerAdSizeStruct)) {
var i = t[n.kATBannerAdLoadingExtraBannerAdSizeStruct];
t.width = i.width;
t.height = i.height;
}
o.loadBanner(e, JSON.stringify(t));
} else cc.log("You must run on Android or iOS.");
},
setAdListener: function(e) {
var t = {};
t[s] = "ATBannerJSSDK.ATBannerListener.onBannerAdLoaded", t[c] = "ATBannerJSSDK.ATBannerListener.onBannerAdLoadFail", 
t[r] = "ATBannerJSSDK.ATBannerListener.onBannerAdCloseButtonTapped", t[l] = "ATBannerJSSDK.ATBannerListener.onBannerAdClick", 
t[d] = "ATBannerJSSDK.ATBannerListener.onBannerAdShow", t[u] = "ATBannerJSSDK.ATBannerListener.onBannerAdAutoRefresh", 
t[h] = "ATBannerJSSDK.ATBannerListener.onBannerAdAutoRefreshFail";
null != o && null != o ? o.setAdListener(JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
this.ATBannerListener.developerCallback = e;
},
hasAdReady: function(e) {
if (null != o && null != o) return o.hasAdReady(e);
cc.log("You must run on Android or iOS.");
return !1;
},
checkAdStatus: function(e) {
if (null != o && null != o) return o.checkAdStatus(e);
cc.log("You must run on Android or iOS.");
return "";
},
showAdInPosition: function(e, t) {
null != o && null != o ? o.showAdInPosition(e, t) : cc.log("You must run on Android or iOS.");
},
showAdInPositionAndScenario: function(e, t, i) {
null != o && null != o ? o.showAdInPosition(e, t, i) : cc.log("You must run on Android or iOS.");
},
showAdInRectangle: function(e, t) {
null != o && null != o ? o.showAdInRectangle(e, JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
},
showAdInRectangleAndScenario: function(e, t, i) {
null != o && null != o ? o.showAdInRectangle(e, JSON.stringify(t), i) : cc.log("You must run on Android or iOS.");
},
removeAd: function(e) {
null != o && null != o ? o.removeAd(e) : cc.log("You must run on Android or iOS.");
},
reShowAd: function(e) {
null != o && null != o ? o.reShowAd(e) : cc.log("You must run on Android or iOS.");
},
hideAd: function(e) {
null != o && null != o ? o.hideAd(e) : cc.log("You must run on Android or iOS.");
},
createLoadAdSize: function(e, t) {
var i = {};
i.width = e;
i.height = t;
return i;
},
createShowAdRect: function(e, t, i, a) {
var o = {};
o.x = e;
o.y = t;
o.width = i;
o.height = a;
return o;
}
}, s = "BannerLoaded", c = "BannerLoadFail", r = "BannerCloseButtonTapped", l = "BannerClick", d = "BannerShow", u = "BannerRefresh", h = "BannerRefreshFail";
window.ATBannerJSSDK = n;
cc._RF.pop();
}, {
"./Android/ATAndroidBannerJS": "ATAndroidBannerJS",
"./iOS/ATiOSBannerJS": "ATiOSBannerJS"
} ],
ATInterstitialJSSDK: [ function(e, t) {
"use strict";
cc._RF.push(t, "6587dbXL/tL57rjxK/tWMAH", "ATInterstitialJSSDK");
var i = e("./iOS/ATiOSInterstitialJS"), a = e("./Android/ATAndroidInterstitialJS"), o = cc.sys.os === cc.sys.OS_IOS ? i : cc.sys.os === cc.sys.OS_ANDROID ? a : void 0, n = n || {
UseRewardedVideoAsInterstitial: "UseRewardedVideoAsInterstitial",
ATInterstitialListener: {
developerCallback: null,
onInterstitialAdLoaded: function(e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdLoaded && null != this.developerCallback.onInterstitialAdLoaded && this.developerCallback.onInterstitialAdLoaded(e);
},
onInterstitialAdLoadFail: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdLoadFail && null != this.developerCallback.onInterstitialAdLoadFail && this.developerCallback.onInterstitialAdLoadFail(e, t);
},
onInterstitialAdShow: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdShow && null != this.developerCallback.onInterstitialAdShow && this.developerCallback.onInterstitialAdShow(e, t);
},
onInterstitialAdStartPlayingVideo: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdStartPlayingVideo && null != this.developerCallback.onInterstitialAdStartPlayingVideo && this.developerCallback.onInterstitialAdStartPlayingVideo(e, t);
},
onInterstitialAdEndPlayingVideo: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdEndPlayingVideo && null != this.developerCallback.onInterstitialAdEndPlayingVideo && this.developerCallback.onInterstitialAdEndPlayingVideo(e, t);
},
onInterstitialAdFailedToPlayVideo: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdFailedToPlayVideo && null != this.developerCallback.onInterstitialAdFailedToPlayVideo && this.developerCallback.onInterstitialAdFailedToPlayVideo(e, t);
},
onInterstitialAdFailedToShow: function(e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdFailedToShow && null != this.developerCallback.onInterstitialAdFailedToShow && this.developerCallback.onInterstitialAdFailedToShow(e);
},
onInterstitialAdClose: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdClose && null != this.developerCallback.onInterstitialAdClose && this.developerCallback.onInterstitialAdClose(e, t);
},
onInterstitialAdClick: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdClick && null != this.developerCallback.onInterstitialAdClick && this.developerCallback.onInterstitialAdClick(e, t);
}
},
loadInterstitial: function(e, t) {
void 0 === t && (t = {});
null != o && null != o ? o.loadInterstitial(e, JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
},
setAdListener: function(e) {
var t = {};
t[s] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdLoaded", t[c] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdLoadFail", 
t[r] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdStartPlayingVideo", 
t[l] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdEndPlayingVideo", 
t[d] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdFailedToPlayVideo", 
t[u] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdClose", t[h] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdClick", 
t[p] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdShow", t[m] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdFailedToShow";
null != o && null != o ? o.setAdListener(JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
this.ATInterstitialListener.developerCallback = e;
},
hasAdReady: function(e) {
if (null != o && null != o) return o.hasAdReady(e);
cc.log("You must run on Android or iOS.");
return !1;
},
checkAdStatus: function(e) {
if (null != o && null != o) return o.checkAdStatus(e);
cc.log("You must run on Android or iOS.");
return "";
},
showAd: function(e) {
null != o && null != o ? o.showAd(e) : cc.log("You must run on Android or iOS.");
},
showAdInScenario: function(e, t) {
void 0 === t && (t = "");
null != o && null != o ? o.showAdInScenario(e, t) : cc.log("You must run on Android or iOS.");
}
}, s = "InterstitialLoaded", c = "InterstitialLoadFail", r = "InterstitialPlayStart", l = "InterstitialPlayEnd", d = "InterstitialPlayFail", u = "InterstitialClose", h = "InterstitialClick", p = "InterstitialAdShow", m = "InterstitialAdShowFail";
window.ATInterstitialJSSDK = n;
cc._RF.pop();
}, {
"./Android/ATAndroidInterstitialJS": "ATAndroidInterstitialJS",
"./iOS/ATiOSInterstitialJS": "ATiOSInterstitialJS"
} ],
ATJSSDK: [ function(e, t) {
"use strict";
cc._RF.push(t, "9b1a2lyo61BnJSajM8mSr0u", "ATJSSDK");
var i = e("./Android/ATAndroidJS"), a = e("./iOS/ATiOSJS"), o = !1, n = cc.sys.os === cc.sys.OS_IOS ? a : cc.sys.os === cc.sys.OS_ANDROID ? i : void 0, s = s || {
kATUserLocationUnknown: 0,
kATUserLocationInEU: 1,
kATUserLocationOutOfEU: 2,
PERSONALIZED: 0,
NONPERSONALIZED: 1,
UNKNOWN: 2,
OS_VERSION_NAME: "os_vn",
OS_VERSION_CODE: "os_vc",
APP_PACKAGE_NAME: "package_name",
APP_VERSION_NAME: "app_vn",
APP_VERSION_CODE: "app_vc",
BRAND: "brand",
MODEL: "model",
DEVICE_SCREEN_SIZE: "screen",
MNC: "mnc",
MCC: "mcc",
LANGUAGE: "language",
TIMEZONE: "timezone",
USER_AGENT: "ua",
ORIENTATION: "orient",
NETWORK_TYPE: "network_type",
INSTALLER: "it_src",
ANDROID_ID: "android_id",
GAID: "gaid",
MAC: "mac",
IMEI: "imei",
OAID: "oaid",
IDFA: "idfa",
IDFV: "idfv",
ATSDKListener: {
userLocationCallback: null,
getUserLocationCallback: function(e) {
null != this.userLocationCallback && null != this.userLocationCallback && this.userLocationCallback(e);
}
},
initSDK: function(e, t) {
null != n && null != n ? n.initSDK(e, t) : cc.log("You must run on Android or iOS.");
},
initCustomMap: function(e) {
null != n && null != n ? null != e && null != e && n.initCustomMap(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
},
setPlacementCustomMap: function(e, t) {
null != n && null != n ? null != t && null != t && n.setPlacementCustomMap(e, JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
},
setGDPRLevel: function(e) {
null != n && null != n ? n.setGDPRLevel(e) : cc.log("You must run on Android or iOS.");
},
getGDPRLevel: function() {
if (null != n && null != n) return n.getGDPRLevel();
cc.log("You must run on Android or iOS.");
return this.UNKNOWN;
},
getUserLocation: function(e) {
this.ATSDKListener.userLocationCallback = e;
null != n && null != n ? n.getUserLocation(c) : cc.log("You must run on Android or iOS.");
},
showGDPRAuth: function() {
null != n && null != n ? n.showGDPRAuth() : cc.log("You must run on Android or iOS.");
},
setLogDebug: function(e) {
o = e;
null != n && null != n ? n.setLogDebug(e) : cc.log("You must run on Android or iOS.");
},
printLog: function(e) {
null != e && null != e && o && null != n && (null != n && null != n ? n.printJsLog(e) : cc.log("You must run on Android or iOS."));
},
deniedUploadDeviceInfo: function(e) {
if (null != n && null != n) {
if (null != e) {
for (var t = e.length, i = "", a = 0; a < t; a++) {
var o = e[a];
i = 0 == a ? o : i + "," + o;
}
cc.log("test__" + i);
n.deniedUploadDeviceInfo(i);
}
} else cc.log("You must run on Android or iOS.");
}
}, c = "ATJSSDK.ATSDKListener.getUserLocationCallback";
window.ATJSSDK = s;
cc._RF.pop();
}, {
"./Android/ATAndroidJS": "ATAndroidJS",
"./iOS/ATiOSJS": "ATiOSJS"
} ],
ATNativeJSSDK: [ function(e, t) {
"use strict";
cc._RF.push(t, "47d02jeBGNOmr+tmisKwRSe", "ATNativeJSSDK");
var i = e("./Android/ATAndroidNativeJS"), a = e("./iOS/ATiOSNativeJS"), o = cc.sys.os === cc.sys.OS_IOS ? a : cc.sys.os === cc.sys.OS_ANDROID ? i : void 0, n = n || {
ATNativeListener: {
developerCallback: null,
onNativeAdLoaded: function(e) {
null != this.developerCallback && null != this.developerCallback.onNativeAdLoaded && null != this.developerCallback.onNativeAdLoaded && this.developerCallback.onNativeAdLoaded(e);
},
onNativeAdLoadFail: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onNativeAdLoadFail && null != this.developerCallback.onNativeAdLoadFail && this.developerCallback.onNativeAdLoadFail(e, t);
},
onNativeAdShow: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onNativeAdShow && null != this.developerCallback.onNativeAdShow && this.developerCallback.onNativeAdShow(e, t);
},
onNativeAdClick: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onNativeAdClick && null != this.developerCallback.onNativeAdClick && this.developerCallback.onNativeAdClick(e, t);
},
onNativeAdVideoStart: function(e) {
null != this.developerCallback && null != this.developerCallback.onNativeAdVideoStart && null != this.developerCallback.onNativeAdVideoStart && this.developerCallback.onNativeAdVideoStart(e);
},
onNativeAdVideoEnd: function(e) {
null != this.developerCallback && null != this.developerCallback.onNativeAdVideoEnd && null != this.developerCallback.onNativeAdVideoEnd && this.developerCallback.onNativeAdVideoEnd(e);
},
onNativeAdCloseButtonTapped: function(e, t) {
null != this.developerCallback && null != this.developerCallback.onNativeAdCloseButtonTapped && null != this.developerCallback.onNativeAdCloseButtonTapped && this.developerCallback.onNativeAdCloseButtonTapped(e, t);
}
},
loadNative: function(e, t) {
void 0 === t && (t = {});
null != o && null != o ? o.loadNative(e, JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
},
setAdListener: function(e) {
var t = {};
t[s] = "ATNativeJSSDK.ATNativeListener.onNativeAdLoaded", t[c] = "ATNativeJSSDK.ATNativeListener.onNativeAdLoadFail", 
t[r] = "ATNativeJSSDK.ATNativeListener.onNativeAdCloseButtonTapped", t[l] = "ATNativeJSSDK.ATNativeListener.onNativeAdClick", 
t[d] = "ATNativeJSSDK.ATNativeListener.onNativeAdShow", t[u] = "ATNativeJSSDK.ATNativeListener.onNativeAdVideoStart", 
t[h] = "ATNativeJSSDK.ATNativeListener.onNativeAdVideoEnd";
null != o && null != o ? o.setAdListener(JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
this.ATNativeListener.developerCallback = e;
},
hasAdReady: function(e) {
if (null != o && null != o) return o.hasAdReady(e);
cc.log("You must run on Android or iOS.");
return !1;
},
checkAdStatus: function(e) {
if (null != o && null != o) return o.checkAdStatus(e);
cc.log("You must run on Android or iOS.");
return "";
},
showAd: function(e, t) {
null != o && null != o ? o.showAd(e, JSON.stringify(t.getAdViewProperty())) : cc.log("You must run on Android or iOS.");
},
showAdInScenario: function(e, t, i) {
void 0 === i && (i = "");
null != o && null != o ? o.showAdInScenario(e, JSON.stringify(t.getAdViewProperty()), i) : cc.log("You must run on Android or iOS.");
},
removeAd: function(e) {
null != o && null != o ? o.removeAd(e) : cc.log("You must run on Android or iOS.");
},
createLoadAdSize: function(e, t) {
var i = {};
i.width = e;
i.height = t;
return i;
},
AdViewProperty: cc.Class({
parent: null,
appIcon: null,
mainImage: null,
title: null,
desc: null,
adLogo: null,
cta: null,
rating: null,
dislike: null,
createItemViewProperty: function(e, t, i, a, o, n, s, c) {
void 0 === c && (c = !1);
var r = {};
r.x = e;
r.y = t;
r.width = i;
r.height = a;
r.backgroundColor = o;
r.textColor = n;
r.textSize = s;
r.isCustomClick = c;
return r;
},
getAdViewProperty: function() {
var e = {};
null != this.parent && (e.parent = this.parent);
null != this.appIcon && (e.icon = this.appIcon);
null != this.mainImage && (e.mainImage = this.mainImage);
null != this.title && (e.title = this.title);
null != this.desc && (e.desc = this.desc);
null != this.adLogo && (e.adLogo = this.adLogo);
null != this.cta && (e.cta = this.cta);
null != this.rating && (e.rating = this.rating);
null != this.dislike && (e.dislike = this.dislike);
return e;
}
})
}, s = "NativeLoaded", c = "NativeLoadFail", r = "NativeCloseButtonTapped", l = "NativeClick", d = "NativeShow", u = "NativeVideoStart", h = "NativeVideoEnd";
window.ATNativeJSSDK = n;
cc._RF.pop();
}, {
"./Android/ATAndroidNativeJS": "ATAndroidNativeJS",
"./iOS/ATiOSNativeJS": "ATiOSNativeJS"
} ],
ATRewardedVideoJSSDK: [ function(e, t) {
"use strict";
cc._RF.push(t, "e7ae99v1GdOxKWiEq5/mrdd", "ATRewardedVideoJSSDK");
var i = e("./Android/ATAndroidRewardedVideoJS"), a = e("./iOS/ATiOSRewardedVideoJS"), o = cc.sys.os === cc.sys.OS_IOS ? a : cc.sys.os === cc.sys.OS_ANDROID ? i : void 0, n = n || {
userIdKey: "userID",
userDataKey: "media_ext",
ATRewardedVideoListener: {
developerCallback: null,
onRewardedVideoAdLoaded: function(e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdLoaded(" + e + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdLoaded && null != this.developerCallback.onRewardedVideoAdLoaded && this.developerCallback.onRewardedVideoAdLoaded(e);
},
onRewardedVideoAdFailed: function(e, t) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdFailed(" + e + ", " + t + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdFailed && null != this.developerCallback.onRewardedVideoAdFailed && this.developerCallback.onRewardedVideoAdFailed(e, t);
},
onRewardedVideoAdPlayStart: function(e, t) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayStart(" + e + ", " + t + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayStart && null != this.developerCallback.onRewardedVideoAdPlayStart && this.developerCallback.onRewardedVideoAdPlayStart(e, t);
},
onRewardedVideoAdPlayEnd: function(e, t) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayEnd(" + e + ", " + t + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayEnd && null != this.developerCallback.onRewardedVideoAdPlayEnd && this.developerCallback.onRewardedVideoAdPlayEnd(e, t);
},
onRewardedVideoAdPlayFailed: function(e, t, i) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayFailed(" + e + ", " + i + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayFailed && null != this.developerCallback.onRewardedVideoAdPlayFailed && this.developerCallback.onRewardedVideoAdPlayFailed(e, t, i);
},
onRewardedVideoAdClosed: function(e, t) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdClosed(" + e + ", " + t + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdClosed && null != this.developerCallback.onRewardedVideoAdClosed && this.developerCallback.onRewardedVideoAdClosed(e, t);
},
onRewardedVideoAdPlayClicked: function(e, t) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayClicked(" + e + ", " + t + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayClicked && null != this.developerCallback.onRewardedVideoAdPlayClicked && this.developerCallback.onRewardedVideoAdPlayClicked(e, t);
},
onReward: function(e, t) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onReward(" + e + ", " + t + ")");
null != this.developerCallback && null != this.developerCallback.onReward && null != this.developerCallback.onReward && this.developerCallback.onReward(e, t);
}
},
loadRewardedVideo: function(e, t) {
void 0 === t && (t = {});
null != o && null != o ? o.loadRewardedVideo(e, JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
},
setAdListener: function(e) {
var t = {};
t[s] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdLoaded", t[c] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdFailed", 
t[r] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayStart", 
t[l] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayEnd", 
t[d] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayFailed", 
t[u] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdClosed", t[h] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayClicked", 
t[p] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onReward";
null != o && null != o ? o.setAdListener(JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
this.ATRewardedVideoListener.developerCallback = e;
},
hasAdReady: function(e) {
if (null != o && null != o) return o.hasAdReady(e);
cc.log("You must run on Android or iOS.");
return !1;
},
checkAdStatus: function(e) {
if (null != o && null != o) return o.checkAdStatus(e);
cc.log("You must run on Android or iOS.");
return "";
},
showAd: function(e) {
null != o && null != o ? o.showAd(e) : cc.log("You must run on Android or iOS.");
},
showAdInScenario: function(e, t) {
void 0 === t && (t = "");
null != o && null != o ? o.showAdInScenario(e, t) : cc.log("You must run on Android or iOS.");
}
}, s = "RewardedVideoLoaded", c = "RewardedVideoLoadFail", r = "RewardedVideoPlayStart", l = "RewardedVideoPlayEnd", d = "RewardedVideoPlayFail", u = "RewardedVideoClose", h = "RewardedVideoClick", p = "RewardedVideoReward";
window.ATRewardedVideoJSSDK = n;
cc._RF.pop();
}, {
"./Android/ATAndroidRewardedVideoJS": "ATAndroidRewardedVideoJS",
"./iOS/ATiOSRewardedVideoJS": "ATiOSRewardedVideoJS"
} ],
ATiOSBannerJS: [ function(e, t) {
"use strict";
cc._RF.push(t, "94a6bWD8pFD9bbewUd1CAks", "ATiOSBannerJS");
var i = e("ATiOSJS"), a = a || {
loadBanner: function(e, t) {
i.printJsLog("ATiOSBannerJS::loadBanner(" + e + ", " + t + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "loadBannerWithPlacementID:extra:", e, t);
},
setAdListener: function(e) {
i.printJsLog("ATiOSBannerJS::setAdListener(" + e + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "setDelegates:", e);
},
hasAdReady: function(e) {
i.printJsLog("ATiOSBannerJS::hasAdReady(" + e + ")");
return jsb.reflection.callStaticMethod("ATBannerAdWrapper", "bannerReadyForPlacementID:", e);
},
checkAdStatus: function(e) {
i.printJsLog("ATiOSBannerJS::checkAdStatus(" + e + ")");
return jsb.reflection.callStaticMethod("ATBannerAdWrapper", "bannerCheckAdStatusForPlacementID:", e);
},
showAdInPosition: function(e, t) {
i.printJsLog("ATiOSBannerJS::showAdInPosition(" + e + ", " + t + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:position:", e, null, t);
},
showAdInPositionAndScenario: function(e, t, a) {
i.printJsLog("ATiOSBannerJS::showAdInPositionAndScenario(" + e + ", " + t + ", " + a + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:position:", e, a, t);
},
showAdInRectangle: function(e, t) {
i.printJsLog("ATiOSBannerJS::showAdInRectangle(" + e + ", " + t + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:rect:", e, null, t);
},
showAdInRectangleAndScenario: function(e, t, a) {
i.printJsLog("ATiOSBannerJS::showAdInRectangleAndScenario(" + e + ", " + t + ", " + a + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:rect:", e, a, t);
},
removeAd: function(e) {
i.printJsLog("ATiOSBannerJS::removeAd(" + e + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "removeAd:", e);
},
reShowAd: function(e) {
i.printJsLog("ATiOSBannerJS::reShowAd(" + e + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "reShowAd:", e);
},
hideAd: function(e) {
i.printJsLog("ATiOSBannerJS::hideAd(" + e + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "hideAd:", e);
}
};
t.exports = a;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
ATiOSInterstitialJS: [ function(e, t) {
"use strict";
cc._RF.push(t, "0a7dea85xVKcJtmlq+dg6Hn", "ATiOSInterstitialJS");
var i = e("ATiOSJS"), a = "ATInterstitialAdWrapper", o = o || {
loadInterstitial: function(e, t) {
i.printJsLog("ATiOSInterstitialJS::loadInterstitial(" + e + ", " + t + ")");
jsb.reflection.callStaticMethod(a, "loadInterstitialWithPlacementID:extra:", e, t);
},
setAdListener: function(e) {
i.printJsLog("ATiOSInterstitialJS::setAdListener(" + e + ")");
jsb.reflection.callStaticMethod(a, "setDelegates:", e);
},
hasAdReady: function(e) {
i.printJsLog("ATiOSInterstitialJS::hasAdReady(" + e + ")");
return jsb.reflection.callStaticMethod(a, "interstitialReadyForPlacementID:", e);
},
checkAdStatus: function(e) {
i.printJsLog("ATiOSInterstitialJS::checkAdStatus(" + e + ")");
return jsb.reflection.callStaticMethod(a, "checkAdStatus:", e);
},
setUserData: function() {
cc.log("Android-setUserData");
},
showAd: function(e) {
i.printJsLog("ATiOSInterstitialJS::showAd(" + e + ")");
return jsb.reflection.callStaticMethod(a, "showInterstitialWithPlacementID:scene:", e, null);
},
showAdInScenario: function(e, t) {
i.printJsLog("ATiOSInterstitialJS::showAd(" + e + ", " + t + ")");
return jsb.reflection.callStaticMethod(a, "showInterstitialWithPlacementID:scene:", e, t);
}
};
t.exports = o;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
ATiOSJS: [ function(e, t) {
"use strict";
cc._RF.push(t, "d4575+E3QpK7JiwmoUrPaa1", "ATiOSJS");
var i = i || {
initSDK: function(e, t) {
this.printJsLog("ATiOSJS::initSDK(" + e + "," + t + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "startWithAppID:appKey:", e, t);
},
initCustomMap: function(e) {
this.printJsLog("ATiOSJS::initCustomMap(" + e + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setCustomData:", e);
},
setPlacementCustomMap: function(e, t) {
this.printJsLog("ATiOSJS::setPlacementCustomMap(" + e + ", " + t + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setCustomData:forPlacementID:", t, e);
},
setGDPRLevel: function(e) {
this.printJsLog("ATiOSJS::setGDPRLevel(" + e + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setDataConsent:", e);
},
getGDPRLevel: function() {
this.printJsLog("ATiOSJS::getGDPRLevel()");
return jsb.reflection.callStaticMethod("ATSDKManager", "dataConsent");
},
getUserLocation: function(e) {
this.printJsLog("ATiOSJS::getUserLocation(" + e + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "getUserLocationWithCallback:", e);
},
showGDPRAuth: function() {
this.printJsLog("ATiOSJS::showGDPRAuth()");
jsb.reflection.callStaticMethod("ATSDKManager", "presentDataConsentDialog");
},
setLogDebug: function(e) {
this.printJsLog("ATiOSJS::setLogDebug(" + e + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setDebugLog:", e);
},
printJsLog: function(e) {
null != e && null != e && jsb.reflection.callStaticMethod("ATJSBridge", "log:", e);
},
deniedUploadDeviceInfo: function(e) {
this.printJsLog("ATiOSJS::deniedUploadDeviceInfo(" + e + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "deniedUploadDeviceInfo:", e);
}
};
t.exports = i;
cc._RF.pop();
}, {} ],
ATiOSNativeJS: [ function(e, t) {
"use strict";
cc._RF.push(t, "f0cf8z0kfRF/ZJJHzkswhQ1", "ATiOSNativeJS");
var i = e("ATiOSJS"), a = a || {
loadNative: function(e, t) {
i.printJsLog("ATiOSBannerJS::loadNative(" + e + ", " + t + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "loadNativeWithPlacementID:extra:", e, t);
},
setAdListener: function(e) {
i.printJsLog("ATiOSNativeJS::setAdListener(" + e + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "setDelegates:", e);
},
hasAdReady: function(e) {
i.printJsLog("ATiOSNativeJS::hasAdReady(" + e + ")");
return jsb.reflection.callStaticMethod("ATNativeAdWrapper", "nativeReadyForPlacementID:", e);
},
checkAdStatus: function(e) {
i.printJsLog("ATiOSNativeJS::checkAdStatus(" + e + ")");
return jsb.reflection.callStaticMethod("ATNativeAdWrapper", "nativeCheckAdStatusForPlacementID:", e);
},
showAd: function(e, t) {
i.printJsLog("ATiOSNativeJS::showAd(" + e + ", " + t + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "showNativeWithPlacementID:scene:metrics:", e, null, t);
},
showAdInScenario: function(e, t, a) {
i.printJsLog("ATiOSNativeJS::showAdInScenario(" + e + ", " + t + ", " + a + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "showNativeWithPlacementID:scene:metrics:", e, a, t);
},
removeAd: function(e) {
i.printJsLog("ATiOSNativeJS::removeAd(" + e + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "removeNativeWithPlacementID:", e);
}
};
t.exports = a;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
ATiOSRewardedVideoJS: [ function(e, t) {
"use strict";
cc._RF.push(t, "29852L0T81McIbPEzCxSyJO", "ATiOSRewardedVideoJS");
var i = e("ATiOSJS"), a = a || {
loadRewardedVideo: function(e, t) {
i.printJsLog("ATiOSRewardedVideoJS::loadRewardedVideo(" + e + ", " + t + ")");
jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "loadRewardedVideoWithPlacementID:extra:", e, t);
},
setAdListener: function(e) {
i.printJsLog("ATiOSRewardedVideoJS::setAdListener(" + e + ")");
jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "setDelegates:", e);
},
hasAdReady: function(e) {
i.printJsLog("ATiOSRewardedVideoJS::hasAdReady(" + e + ")");
return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "rewardedVideoReadyForPlacementID:", e);
},
checkAdStatus: function(e) {
i.printJsLog("ATiOSRewardedVideoJS::checkAdStatus(" + e + ")");
return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "checkAdStatus:", e);
},
setUserData: function() {
cc.log("Android-setUserData");
},
showAd: function(e) {
i.printJsLog("ATiOSRewardedVideoJS::showAd(" + e + ")");
return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "showRewardedVideoWithPlacementID:scene:", e, null);
},
showAdInScenario: function(e, t) {
i.printJsLog("ATiOSRewardedVideoJS::showAdInScenario(" + e + ", " + t + ")");
return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "showRewardedVideoWithPlacementID:scene:", e, t);
}
};
t.exports = a;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
EventServices: [ function(e, t) {
"use strict";
cc._RF.push(t, "7dbbewcfGRC35oNK2Eopjir", "EventServices");
var i = function() {
function e() {
this.eventList = {};
}
var t = e.prototype;
t.publish = function(e) {
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) i[a - 1] = arguments[a];
var o = this.eventList[e];
o && o.forEach(function(e) {
e.apply(null, i);
});
};
t.subscribe = function(e, t) {
if (this.eventList[e]) this.eventList[e].push(t); else {
this.eventList[e] = [];
this.eventList[e].push(t);
}
};
t.unSubscribe = function(e) {
this.eventList[e] = "";
delete this.eventList[e];
};
return e;
}();
t.exports = new i();
cc._RF.pop();
}, {} ],
HotUpdate: [ function(e, t) {
"use strict";
cc._RF.push(t, "518abD4mVJGgK9ehieokW8k", "HotUpdate");
e("../ads/ADS").ADS;
var i = e("../ads/video").videoAds, a = e("./UpdatePanel"), o = JSON.stringify({
packageUrl: "http://192.168.50.220:5555/tutorial-hot-update/remote-assets/",
remoteManifestUrl: "http://192.168.50.220:5555/tutorial-hot-update/remote-assets/project.manifest",
remoteVersionUrl: "http://192.168.50.220:5555/tutorial-hot-update/remote-assets/version.manifest",
version: "1.10",
assets: {
"src/cocos2d-jsb.js": {
size: 3341465,
md5: "fafdde66bd0a81d1e096799fb8b7af95"
},
"src/project.dev.js": {
size: 97814,
md5: "ed7f5acd411a09d4d298db800b873b00"
},
"src/settings.js": {
size: 3849,
md5: "deb03998a4cfb8f8b468fba8575cb1c9"
},
"res/import/03/0379fb962.json": {
size: 1107,
md5: "d102d0f14ed6b6cb42cc28d88b3b9069"
},
"res/import/0c/0cd5de143.json": {
size: 80883,
md5: "f06347880038a1381043ed505d6f8a9a"
},
"res/import/0d/0d756af45.json": {
size: 10137,
md5: "02dc8b795e79b9fd62e00d4a2c70c8c1"
},
"res/import/0d/0dc6a4e59.json": {
size: 14970,
md5: "a500f696892df6869341dff5f31b1a33"
},
"res/import/41/4128b78b-00ae-4d8a-ae35-4e5ca5c5cde9.json": {
size: 76,
md5: "3f79d93ce8d42b186ecd43d868c8d023"
},
"res/import/49/49539cb0-3893-459a-b310-7cc1b7f6d335.json": {
size: 72,
md5: "8a36388cda7c3773b5bf7a53d8824535"
},
"res/import/9e/9e2ae507-fae5-4511-940b-f2e46f81b790.json": {
size: 74,
md5: "98f6b1d93a4ee3a1f2074be9ce00fbb2"
},
"res/raw-assets/0e/0ed8cf6e-8c04-4569-8d17-626a26e1099f.png": {
size: 4665,
md5: "9e8bf9af30ac7a9ea9d3b72f37a193e1"
},
"res/raw-assets/13/137d1ca6-e90c-440b-9fa2-4b9ffff569f7.png": {
size: 1627,
md5: "75060291e24294abd6a52553fa22317e"
},
"res/raw-assets/15/15d5f3f0-f965-4c00-945b-d2c8faee78b6.png": {
size: 3840,
md5: "cb525edab8063a845e6bd1e9d29b8cde"
},
"res/raw-assets/19/19509bb1-dc08-4cbf-ab8f-2460e207265c.png": {
size: 9638,
md5: "6e159c9cc1b971d3921bc8908071a70b"
},
"res/raw-assets/26/26e9a867-3d2f-4981-8a33-82d440de7aff.png": {
size: 6417,
md5: "5c139729708dd26bd461bcd3e8201823"
},
"res/raw-assets/2d/2ddfe005-2129-41d8-aeec-2b1f51f02962.png": {
size: 2290,
md5: "874dccfd88108a9f0188bda59c5df183"
},
"res/raw-assets/34/3459ab36-782c-4c4e-8aef-7280aff8b272.png": {
size: 18969,
md5: "3a810a636f3779b357e854155eafa4b6"
},
"res/raw-assets/36/36b6ea73-ff48-430e-a0c7-0e5e8defe341.png": {
size: 2711,
md5: "e64625aeb59a1de225e718a7126634ad"
},
"res/raw-assets/39/394bac82-54fb-472f-a27f-b5107821bfb8.png": {
size: 1641,
md5: "049d2201d7d99fc6dbdb017d8d8bd9b8"
},
"res/raw-assets/3c/3cedb8b4-8532-4037-a00e-b8d3e0013158.png": {
size: 94313,
md5: "a2e763866c1bdd6b189be69f3d37eedd"
},
"res/raw-assets/41/4128b78b-00ae-4d8a-ae35-4e5ca5c5cde9.manifest": {
size: 6358,
md5: "c1d18879851e567545ea04bf135a325f"
},
"res/raw-assets/49/49539cb0-3893-459a-b310-7cc1b7f6d335.mp3": {
size: 971644,
md5: "f45ec6666f06b729d8c0461bc89d4b94"
},
"res/raw-assets/4e/4e06c7f1-72ac-4e4e-90de-683e16905156.png": {
size: 2406,
md5: "5f0c28e0eed7ec0cb75e45f5937dd7c6"
},
"res/raw-assets/50/50da5486-dfa1-46d2-9d4f-686eb5527c1a.png": {
size: 6911,
md5: "51cf32529c923146f06019a58398c98d"
},
"res/raw-assets/52/5245e25c-010c-45fb-84a3-f3bce95793e7.png": {
size: 3963,
md5: "0f050ba45e09986b3d785b7b23ffcc1e"
},
"res/raw-assets/6d/6de06a23-d0de-4766-a9e1-a0314136d62e.png": {
size: 10878,
md5: "9f89eec7a1b0f615a3c1bab0857aefff"
},
"res/raw-assets/70/700faa17-11a6-46cd-aeb5-d6900bc264f8.png": {
size: 3765,
md5: "878e89a0a3e02b13beee9f3274f2ca39"
},
"res/raw-assets/71/71561142-4c83-4933-afca-cb7a17f67053.png": {
size: 1050,
md5: "c06a93f5f1a8a1c6edc4fd8b52e96cbf"
},
"res/raw-assets/80/8071df9d-029b-40e8-98f3-8eab08dbf6ca.png": {
size: 25205,
md5: "f688777a92fba11bfe85c3061a4476e5"
},
"res/raw-assets/82/82fe58d4-ae13-4806-9a41-2e73902ea811.png": {
size: 24298,
md5: "b807df8ffcb540f3dd20db75ac95b73b"
},
"res/raw-assets/83/83cc2086-d713-47a0-8d86-a8d6068b6258.png": {
size: 3782,
md5: "9827ce705349caa604e1aba1d53b0fd9"
},
"res/raw-assets/96/96e3e293-4e36-426d-a0a6-eb8d025c0d5b.png": {
size: 15379,
md5: "d6ce47aed38348a1ea0f003fa0063079"
},
"res/raw-assets/97/97a6316c-7fcb-4ffe-9045-35625bc6abf6.png": {
size: 2187,
md5: "f3f41b4c0783a751e561f1b84d91a70b"
},
"res/raw-assets/97/97bb9c9c-5568-4419-af04-4ed5a2969a02.png": {
size: 10370,
md5: "48ab94f1c34b0e9a047297cab1aeabc4"
},
"res/raw-assets/99/99170b0b-d210-46f1-b213-7d9e3f23098a.png": {
size: 1177,
md5: "d1118d133683bb4227d5e60c79c846b7"
},
"res/raw-assets/99/99acc716-33df-4c4c-879d-cc3407f0cd8c.png": {
size: 9754,
md5: "23e7221934021f3fbe6c6a52b023ded8"
},
"res/raw-assets/9e/9e2ae507-fae5-4511-940b-f2e46f81b790.mp3": {
size: 3179,
md5: "90d17b1a25200c90e292d9a3748c9fec"
},
"res/raw-assets/ac/ac11439d-3758-49f5-8728-81ed22c1ed96.png": {
size: 11935,
md5: "c20ae4a74c42b2aed28bb8c9247eb5d5"
},
"res/raw-assets/ae/ae4e2188-2b7b-42a9-85e1-8fb987600b04.png": {
size: 634171,
md5: "07b03f7145b75579708ae05ea2a2c029"
},
"res/raw-assets/af/afe329a6-e85e-46a0-98ed-8a34e128907b.png": {
size: 2209,
md5: "30ae2fe844c7c53f1d00291051230607"
},
"res/raw-assets/b2/b2037f34-04ff-4351-b9da-5be4bb557017.png": {
size: 1530,
md5: "bb96dacb8b09e0443d83462cc7b20095"
},
"res/raw-assets/b4/b43ff3c2-02bb-4874-81f7-f2dea6970f18.png": {
size: 1114,
md5: "83fcc9912e01ae5411c357651fb8b1cf"
},
"res/raw-assets/c3/c39ea496-96eb-4dc5-945a-e7c919b77c21.png": {
size: 2548,
md5: "ae7a04af25e238a5478170759b55a7ba"
},
"res/raw-assets/ca/caaaf9ff-5036-4232-a8a7-88b80b2e4c88.png": {
size: 1829,
md5: "94d761c4626df88053787f17fa09914d"
},
"res/raw-assets/ca/cacafa85-d8e9-4716-bcdb-7eba457e409c.png": {
size: 7380,
md5: "e6bb0f4d041257653f07da2dfe1edd09"
},
"res/raw-assets/ce/ce6d2de9-7056-4ba8-a1b1-40b00bb6f469.png": {
size: 10982,
md5: "52aa0df577edafe11de1cfdb44422895"
},
"res/raw-assets/cf/cfef78f1-c8df-49b7-8ed0-4c953ace2621.png": {
size: 1140,
md5: "a4b5953dffeb145b4b70072d91c4052b"
},
"res/raw-assets/d5/d5dfe6a8-eb19-4aae-a74f-83b71eaa57dc.png": {
size: 8755,
md5: "aeb1055ced334ce20fe030579e187494"
},
"res/raw-assets/da/da3e556f-1bce-4c31-87dc-897ea2d788e2.png": {
size: 11636,
md5: "d81124346c110eb1377f7b56346b31e4"
},
"res/raw-assets/e8/e851e89b-faa2-4484-bea6-5c01dd9f06e2.png": {
size: 1082,
md5: "90cf45d059d0408bec327f66eae5764c"
},
"res/raw-assets/ec/ec244ee5-6f1f-4920-9b69-d4df0e78ec2d.png": {
size: 55581,
md5: "68fdff7430b1b02f3a6e76bea92c6372"
},
"res/raw-assets/fc/fccc4d85-6ad4-496d-9b33-ea76e69da132.png": {
size: 82257,
md5: "df4359cdcb956f52f2e5b4ef777bbb7d"
}
},
searchPaths: []
});
cc.Class({
extends: cc.Component,
properties: {
panel: a,
manifestUrl: {
type: cc.Asset,
default: null
},
updateUI: cc.Node,
_updating: !1,
_canRetry: !1,
_storagePath: ""
},
showAds: function() {
i.showAd();
},
checkCb: function(e) {
cc.log("Code: " + e.getEventCode());
switch (e.getEventCode()) {
case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
this.panel.info.string = "No local manifest file found, hot update skipped.";
break;

case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
this.panel.info.string = "Fail to download manifest file, hot update skipped.";
this.enterGame();
break;

case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
this.panel.info.string = "已经是最新版本.";
this.enterGame();
break;

case jsb.EventAssetsManager.NEW_VERSION_FOUND:
this.panel.info.string = "发现新版本. (" + this._am.getTotalBytes() + ")";
this.panel.checkBtn.active = !1;
this.panel.fileProgress.progress = 0;
this.panel.byteProgress.progress = 0;
break;

default:
return;
}
this._am.setEventCallback(null);
this._checkListener = null;
this._updating = !1;
},
updateCb: function(e) {
var t = !1, i = !1;
switch (e.getEventCode()) {
case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
this.panel.info.string = "No local manifest file found, hot update skipped.";
i = !0;
break;

case jsb.EventAssetsManager.UPDATE_PROGRESSION:
break;

case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
this.panel.info.string = "Fail to download manifest file, hot update skipped.";
i = !0;
this.enterGame();
break;

case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
i = !0;
this.enterGame();
break;

case jsb.EventAssetsManager.UPDATE_FINISHED:
this.panel.info.string = "更新完成，请重启游戏 " + e.getMessage();
t = !0;
break;

case jsb.EventAssetsManager.UPDATE_FAILED:
this.panel.info.string = "Update failed. " + e.getMessage();
this.panel.retryBtn.active = !0;
this._updating = !1;
this._canRetry = !0;
this.enterGame();
break;

case jsb.EventAssetsManager.ERROR_UPDATING:
this.panel.info.string = "Asset update error: " + e.getAssetId() + ", " + e.getMessage();
break;

case jsb.EventAssetsManager.ERROR_DECOMPRESS:
this.panel.info.string = e.getMessage();
}
if (i) {
this._am.setEventCallback(null);
this._updateListener = null;
this._updating = !1;
}
if (t) {
this._am.setEventCallback(null);
this._updateListener = null;
var a = jsb.fileUtils.getSearchPaths(), o = this._am.getLocalManifest().getSearchPaths();
console.log(JSON.stringify(o));
Array.prototype.unshift.apply(a, o);
cc.sys.localStorage.setItem("HotUpdateSearchPaths", JSON.stringify(a));
jsb.fileUtils.setSearchPaths(a);
cc.audioEngine.stopAll();
cc.game.restart();
}
},
loadCustomManifest: function() {
if (this._am.getState() === jsb.AssetsManager.State.UNINITED) {
var e = new jsb.Manifest(o, this._storagePath);
this._am.loadLocalManifest(e, this._storagePath);
this.panel.info.string = "Using custom manifest";
}
},
retry: function() {
if (!this._updating && this._canRetry) {
this.panel.retryBtn.active = !1;
this._canRetry = !1;
this.panel.info.string = "Retry failed Assets...";
this._am.downloadFailedAssets();
}
},
checkUpdate: function() {
if (this._updating) this.panel.info.string = "Checking or updating ..."; else {
if (this._am.getState() === jsb.AssetsManager.State.UNINITED) {
var e = this.manifestUrl.nativeUrl;
cc.loader.md5Pipe && (e = cc.loader.md5Pipe.transformURL(e));
this._am.loadLocalManifest(e);
}
if (this._am.getLocalManifest() && this._am.getLocalManifest().isLoaded()) {
this._am.setEventCallback(this.checkCb.bind(this));
this._am.checkUpdate();
this._updating = !0;
} else this.panel.info.string = "Failed to load local manifest ...";
}
},
hotUpdate: function() {
if (this._am && !this._updating) {
this._am.setEventCallback(this.updateCb.bind(this));
if (this._am.getState() === jsb.AssetsManager.State.UNINITED) {
var e = this.manifestUrl.nativeUrl;
cc.loader.md5Pipe && (e = cc.loader.md5Pipe.transformURL(e));
this._am.loadLocalManifest(e);
}
this._failCount = 0;
this._am.update();
this.panel.updateBtn.active = !1;
this._updating = !0;
}
},
show: function() {
!1 === this.updateUI.active && (this.updateUI.active = !0);
},
onLoad: function() {
if (cc.sys.isNative) {
this._storagePath = (jsb.fileUtils ? jsb.fileUtils.getWritablePath() : "/") + "blackjack-remote-asset";
cc.log("Storage path for remote asset : " + this._storagePath);
this.versionCompareHandle = function(e, t) {
cc.log("JS Custom Version Compare: version A is " + e + ", version B is " + t);
for (var i = e.split("."), a = t.split("."), o = 0; o < i.length; ++o) {
var n = parseInt(i[o]), s = parseInt(a[o] || 0);
if (n !== s) return n - s;
}
return a.length > i.length ? -1 : 0;
};
this._am = new jsb.AssetsManager("", this._storagePath, this.versionCompareHandle);
var e = this.panel;
this._am.setVerifyCallback(function(t, i) {
var a = i.compressed, o = i.md5, n = i.path;
i.size;
if (a) {
e.info.string = "Verification passed : " + n;
return !0;
}
e.info.string = "Verification passed : " + n + " (" + o + ")";
return !0;
});
cc.sys.os === cc.sys.OS_ANDROID && this._am.setMaxConcurrentTask(2);
this.panel.fileProgress.progress = 0;
this.panel.byteProgress.progress = 0;
}
},
onDestroy: function() {
if (this._updateListener) {
this._am.setEventCallback(null);
this._updateListener = null;
}
},
enterGame: function() {
cc.director.loadScene("main");
}
});
cc._RF.pop();
}, {
"../ads/ADS": "ADS",
"../ads/video": "video",
"./UpdatePanel": "UpdatePanel"
} ],
ListItem: [ function(e, t, i) {
"use strict";
cc._RF.push(t, "d1de8jWlx5KV7jqbt464/l/", "ListItem");
Object.defineProperty(i, "__esModule", {
value: !0
});
i.ListItem = void 0;
var a = cc._decorator, o = (a.ccclass, a.property, a.executeInEditMode, a.requireComponent, 
a.menu, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype._initItem = function(e, t) {
this.data = e;
this.initItem(e, t);
};
t.prototype.onDestroy = function() {
this.node.off(cc.Node.EventType.TOUCH_END);
};
return t;
}(cc.Component));
i.ListItem = o;
cc._RF.pop();
}, {} ],
ListViewAdapter: [ function(e, t, i) {
"use strict";
cc._RF.push(t, "a5616LC4IpEt5saNK4PNFzZ", "ListViewAdapter");
Object.defineProperty(i, "__esModule", {
value: !0
});
i.ListViewAdapter = i.EListLayoutType = void 0;
var a = e("./ListItem"), o = cc._decorator, n = o.ccclass, s = o.property, c = o.executeInEditMode, r = o.requireComponent, l = o.menu;
i.EListLayoutType = cc.Enum({
Horizontal: 0,
Vertical: 1
});
var d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t._layoutType = i.EListLayoutType.Vertical;
t._cellPre = null;
t._spacingX = 0;
t._spacingY = 0;
t._gridNum = 1;
t.svBBoxRect = null;
t._showNeedNum = 0;
t._widgetSize = cc.size(0, 0);
t.dataList = [];
t._widget = null;
t._layoutCpt = null;
t._idleNodes = [];
t._isStartLoading = !1;
t._curLoadIdx = 0;
t.isFrameLoading = !0;
t.loadNum = 5;
t.testNum = 2;
t._isTest = !1;
t.isInit = !1;
return t;
}
Object.defineProperty(t.prototype, "layoutType", {
get: function() {
return this._layoutType;
},
set: function(e) {
this._layoutType = e;
this.initAnchorPoint();
this.updateLayout();
var t = this.getComponent(cc.ScrollView);
t.vertical = e == i.EListLayoutType.Vertical;
t.horizontal = !t.vertical;
this._widgetSize.width = 0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "cellPre", {
get: function() {
return this._cellPre;
},
set: function(e) {
this._cellPre = e;
this.updateLayout();
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "spacingX", {
get: function() {
return this._spacingX;
},
set: function(e) {
this._spacingX = e;
this.updateLayout();
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "spacingY", {
get: function() {
return this._spacingY;
},
set: function(e) {
this._spacingY = e;
this.updateLayout();
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "gridNum", {
get: function() {
return this._gridNum;
},
set: function(e) {
this._gridNum = e;
this.updateLayout();
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isTest", {
get: function() {
return this._isTest;
},
set: function(e) {
this._isTest = e;
this.test();
},
enumerable: !1,
configurable: !0
});
t.prototype.test = function() {
for (var e = [], t = 0, i = this.testNum; t < i; t++) e.push(t);
this._isTest ? this.updateItems(e, !0) : this.node.getComponent(cc.ScrollView).content.destroyAllChildren();
};
t.prototype.onLoad = function() {
var e = this.node.getChildByName("view");
if (e) {
this._widget = e.getComponent(cc.Widget);
var t = this.getComponent(cc.ScrollView).content;
this._layoutCpt = t.getComponent(cc.Layout);
this.updateViewWidget();
} else this.initListView();
this.calScrollBoxRect();
this.isInit = !0;
};
t.prototype.clearAll = function() {
this._curLoadIdx = 0;
this.node.getComponent(cc.ScrollView).content.destroyAllChildren();
};
t.prototype.initListView = function() {
this.node.name = "ListView";
this.node.width = 200;
this.node.height = 200;
var e = new cc.Node("view");
e.parent = this.node;
e.addComponent(cc.Mask);
var t = new cc.Node("content");
t.parent = e;
this._widget = e.addComponent(cc.Widget);
this._layoutCpt = t.addComponent(cc.Layout);
this._layoutCpt.verticalDirection = cc.Layout.VerticalDirection.TOP_TO_BOTTOM;
this._layoutCpt.horizontalDirection = cc.Layout.HorizontalDirection.LEFT_TO_RIGHT;
this._layoutCpt.resizeMode = cc.Layout.ResizeMode.CONTAINER;
var i = this.getComponent(cc.ScrollView);
i.content = t;
i.horizontal = !1;
i.vertical = !0;
i.inertia = !1;
i.elastic = !1;
this.initAnchorPoint();
this.updateViewWidget();
};
t.prototype.initAnchorPoint = function() {
if (this._layoutType == i.EListLayoutType.Vertical) {
this.node.setAnchorPoint(0, 1);
this._layoutCpt.node.setAnchorPoint(.5, 1);
} else {
this.node.setAnchorPoint(0, 0);
this._layoutCpt.node.setAnchorPoint(0, .5);
}
};
t.prototype.updateLayout = function() {
if (this._layoutCpt) {
this._layoutCpt.spacingX = this._spacingX;
this._layoutCpt.spacingY = this._spacingY;
if (this._gridNum > 1) {
this._layoutCpt.type = cc.Layout.Type.GRID;
this._layoutCpt.startAxis = this._layoutType == i.EListLayoutType.Vertical ? cc.Layout.AxisDirection.HORIZONTAL : cc.Layout.AxisDirection.VERTICAL;
} else this._layoutCpt.type = this._layoutType == i.EListLayoutType.Vertical ? cc.Layout.Type.VERTICAL : cc.Layout.Type.HORIZONTAL;
if (this._layoutType == i.EListLayoutType.Vertical) {
var e = this._gridNum * this.getCellWidth() + (this._gridNum - 1) * this._spacingX + this._layoutCpt.paddingLeft + this._layoutCpt.paddingRight;
this._layoutCpt.node.width = e;
} else {
var t = this._gridNum * this.getCellHeight() + (this._gridNum - 1) * this._spacingY + this._layoutCpt.paddingTop + this._layoutCpt.paddingBottom;
this._layoutCpt.node.height = t;
}
}
};
t.prototype.getCellWidth = function() {
return this._cellPre ? this._cellPre.data.width * (this._layoutCpt.affectedByScale ? this._cellPre.data.scaleX : 1) : this.node.width / this._gridNum;
};
t.prototype.getCellHeight = function() {
return this._cellPre ? this._cellPre.data.height * (this._layoutCpt.affectedByScale ? this._cellPre.data.scaleY : 1) : this.node.height;
};
t.prototype.update = function() {};
t.prototype.lateUpdate = function() {};
t.prototype.updateItems = function(e, t) {
void 0 === t && (t = !1);
this.isInit || this.onLoad();
if (!((null == e ? void 0 : e.length) <= 0)) {
this.dataList = e;
if (t) for (var i = 0, a = this.getAddItemCount(); i < a; i++) this.addItem(i, t); else {
console.log("changeType");
if (this.isFrameLoading) {
this._curLoadIdx = 0;
this.executePreFrame(this.lazyLoad(e.length));
} else {
for (i = 0, a = this.getAddItemCount(); i < a; i++) this.addItem(i);
this.loadEnd();
}
}
}
};
t.prototype.loadEnd = function() {
this._isStartLoading = !1;
for (var e = this.getAddItemCount(), t = this._layoutCpt.node.childrenCount; e < t; ) {
var i = this._layoutCpt.node.children[e];
i.removeFromParent(!1);
this._idleNodes.push(i);
t--;
}
};
t.prototype.setNeedShowNum = function(e) {
if (this._showNeedNum != e) {
this._showNeedNum = e;
return !0;
}
return !1;
};
t.prototype.setNeedShowNumFull = function(e) {
return this.setNeedShowNum(Math.ceil(e / this.gridNum) * this.gridNum);
};
t.prototype.getAddItemCount = function() {
return this._showNeedNum > 0 ? this._showNeedNum : this.dataList.length;
};
t.prototype.updateViewWidget = function() {
if (this._widget) {
this._widget.top = 0;
this._widget.bottom = 0;
this._widget.left = 0;
this._widget.right = 0;
this.updateLayout();
}
};
t.prototype.addItem = function(e, t) {
var i = this;
void 0 === t && (t = !1);
if (this._cellPre) {
var o = this._layoutCpt.node.children[e];
if (o) t || o.getComponent(a.ListItem)._initItem(this.dataList[e], e); else {
console.log("=====================list");
if (this._idleNodes.length > 0) o = this._idleNodes.pop(); else {
o = cc.instantiate(this._cellPre);
console.log(o);
if (!t) {
o.on(cc.Event.TOUCH, function() {
n.onItemclick(i.dataList[e]);
});
this._layoutCpt.type == cc.Layout.Type.GRID && o.setAnchorPoint(.5, .5);
o.setPosition(0, 0);
}
}
var n = o.getComponent(a.ListItem);
n || console.error("item must being script " + a.ListItem);
n._initItem(this.dataList[e], e);
this._layoutCpt.node.addChild(o);
}
o.active = !0;
}
};
t.prototype.calScrollBoxRect = function() {
var e = this.getComponent(cc.ScrollView), t = e.node.parent.convertToWorldSpaceAR(cc.v2(e.node.x - e.node.anchorX * e.node.width, e.node.y - e.node.anchorY * e.node.height));
this.svBBoxRect = cc.rect(t.x, t.y, e.node.width, e.node.height);
};
t.prototype.handlerScroll = function() {
var e = this;
this.getComponent(cc.ScrollView).content.children.forEach(function(t) {
t.getBoundingBoxToWorld().intersects(e.svBBoxRect) ? 255 != t.opacity && t.emit("on_scroll_view", 255) : 0 != t.opacity && t.emit("on_scroll_view", 0);
});
};
t.prototype.lazyLoad = function(e) {
var t;
return __generator(this, function(i) {
switch (i.label) {
case 0:
t = this._curLoadIdx;
i.label = 1;

case 1:
return t < e ? [ 4, this.addItem(t) ] : [ 3, 4 ];

case 2:
i.sent();
i.label = 3;

case 3:
t++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
};
t.prototype.executePreFrame = function(e) {
var t = this;
return new Promise(function(i) {
var a = 0, o = function() {
for (var n = e.next(); ;n = e.next()) {
a++;
t._curLoadIdx++;
if (n.done || null == n) {
t.loadEnd();
i(!0);
return;
}
if (a > t.loadNum) {
t.scheduleOnce(function() {
a = 0;
o();
});
return;
}
}
};
o();
});
};
__decorate([ s ], t.prototype, "_layoutType", void 0);
__decorate([ s({
type: i.EListLayoutType,
tooltip: "布局方式：水平或者上下"
}) ], t.prototype, "layoutType", null);
__decorate([ s(cc.Prefab) ], t.prototype, "_cellPre", void 0);
__decorate([ s({
type: cc.Prefab,
tooltip: "元素节点的预制"
}) ], t.prototype, "cellPre", null);
__decorate([ s ], t.prototype, "_spacingX", void 0);
__decorate([ s({
type: cc.Float,
tooltip: "横向间隔",
visible: function() {
return this._gridNum > 1 || this.layoutType == i.EListLayoutType.Horizontal;
}
}) ], t.prototype, "spacingX", null);
__decorate([ s ], t.prototype, "_spacingY", void 0);
__decorate([ s({
type: cc.Float,
tooltip: "纵向间隔",
visible: function() {
return this._gridNum > 1 || this.layoutType == i.EListLayoutType.Vertical;
}
}) ], t.prototype, "spacingY", null);
__decorate([ s ], t.prototype, "_gridNum", void 0);
__decorate([ s({
type: cc.Float,
tooltip: "每行或者每列的子节点数量"
}) ], t.prototype, "gridNum", null);
__decorate([ s({
tooltip: "是否开启分帧加载"
}) ], t.prototype, "isFrameLoading", void 0);
__decorate([ s({
tooltip: "每帧加载几个（默认 5个）",
visible: function() {
return this.isFrameLoading;
}
}) ], t.prototype, "loadNum", void 0);
__decorate([ s({
tooltip: "仅供编辑器测试"
}) ], t.prototype, "testNum", void 0);
__decorate([ s({
tooltip: "重新刷新, 仅供编辑器测试"
}) ], t.prototype, "isTest", null);
return __decorate([ n, c, r(cc.ScrollView), l("adapter/ListViewAdapter") ], t);
}(cc.Component);
i.ListViewAdapter = d;
cc._RF.pop();
}, {
"./ListItem": "ListItem"
} ],
UpdatePanel: [ function(e, t) {
"use strict";
cc._RF.push(t, "841aaqHyNtNcpzOJXuxyXQm", "UpdatePanel");
t.exports = cc.Class({
extends: cc.Component,
properties: {
info: cc.Label,
fileProgress: cc.ProgressBar,
fileLabel: cc.Label,
byteProgress: cc.ProgressBar,
byteLabel: cc.Label,
close: cc.Node,
checkBtn: cc.Node,
retryBtn: cc.Node,
updateBtn: cc.Node
}
});
cc._RF.pop();
}, {} ],
achieveItem: [ function(e, t) {
"use strict";
cc._RF.push(t, "c6455NKQjhBhZaz5wHhbITC", "achieveItem");
var i = e("../ListView/ListItem"), a = e("../shop/gameData");
cc.Class({
extends: i.ListItem,
properties: {
title: cc.Label,
content: cc.Label,
process: cc.Label
},
start: function() {},
initItem: function(e) {
var t = a.achieveProcess[e.type];
this.title.string = e.title;
this.content.string = e.content;
if (t >= e.all) {
this.process.string = "完成度：" + formatMoney(e.all) + "/" + formatMoney(e.all);
this.process.node.color = new cc.color(52, 54, 144);
} else this.process.string = "完成度：" + formatMoney(t) + "/" + formatMoney(e.all);
},
onItemclick: function() {}
});
cc._RF.pop();
}, {
"../ListView/ListItem": "ListItem",
"../shop/gameData": "gameData"
} ],
alert: [ function(e, t) {
"use strict";
cc._RF.push(t, "7a2f9YGgShGvZ7wzvngCKTt", "alert");
function i(e, t, i, a, o, n, s) {
try {
var c = e[n](s), r = c.value;
} catch (e) {
i(e);
return;
}
c.done ? t(r) : Promise.resolve(r).then(a, o);
}
var a = e("../util/gameResources").PrefabCache, o = !0, n = !0, s = {
_alert: null,
_animSpeed: .3
}, c = function() {
var e, t = (e = regeneratorRuntime.mark(function e(t) {
var i, o;
return regeneratorRuntime.wrap(function(e) {
for (;;) switch (e.prev = e.next) {
case 0:
if (n) {
e.next = 2;
break;
}
return e.abrupt("return");

case 2:
n = !1;
if (i = a.msg) {
e.next = 8;
break;
}
e.next = 7;
return cc.loader.loadRes("prefab/msg");

case 7:
i = e.sent;

case 8:
(o = cc.instantiate(i)).zIndex = 100;
o.getChildByName("tips").getComponent(cc.Label).string = t;
setTimeout(function() {
n = !0;
cc.isValid(o) && o.destroy();
}, 1500);
o.parent = cc.find("Canvas");
r(o);

case 14:
case "end":
return e.stop();
}
}, e);
}), function() {
var t = this, a = arguments;
return new Promise(function(o, n) {
var s = e.apply(t, a);
function c(e) {
i(s, o, n, c, r, "next", e);
}
function r(e) {
i(s, o, n, c, r, "throw", e);
}
c(void 0);
});
});
return function(e) {
return t.apply(this, arguments);
};
}(), r = function(e) {
e.setScale(2);
e.opacity = 0;
var t = cc.callFunc(d, this), i = cc.sequence(cc.spawn(cc.fadeTo(s._animSpeed, 255), cc.scaleTo(s._animSpeed, 1)), t);
e.runAction(i);
}, l = function() {
s._alert.setScale(2);
s._alert.opacity = 0;
var e = cc.callFunc(d, this), t = cc.sequence(cc.spawn(cc.fadeTo(s._animSpeed, 255), cc.scaleTo(s._animSpeed, 1)), e);
s._alert.runAction(t);
}, d = function() {}, u = function() {
if (s._alert) {
var e = cc.callFunc(h, this), t = cc.sequence(cc.spawn(cc.fadeTo(s._animSpeed, 0), cc.scaleTo(s._animSpeed, 2)), e);
s._alert.runAction(t);
}
}, h = function() {
p();
}, p = function() {
if (null != s._alert) {
s._alert.removeFromParent();
o = !0;
s._alert = null;
}
};
t.exports = {
show: function(e, t, i) {
var n = a.tipAlert;
n || (n = a.toast);
var c = cc.instantiate(n);
if (o) {
o = !1;
s._alert = c;
cc.director.getScene().addChild(s._alert, 3);
s._alert.zIndex = 100;
cc.find("tipAlert/tips").getComponent(cc.Label).string = e;
cc.find("tipAlert/message").getComponent(cc.Label).string = t;
if (i) {
cc.find("tipAlert/ensure").on("click", function() {
u();
i(!0);
}, this);
cc.find("tipAlert/cancel").on("click", function() {
u();
i(!1);
}, this);
} else setTimeout(function() {
u();
}, 1e3);
s._alert.parent = cc.find("Canvas");
l();
}
},
msg: c
};
cc._RF.pop();
}, {
"../util/gameResources": "gameResources"
} ],
audio: [ function(e, t) {
"use strict";
cc._RF.push(t, "7c9a6twpU1OSY1GX88TJQUl", "audio");
e("./alert").msg;
cc.Class({
extends: cc.Component,
properties: {
bgMusic: cc.AudioClip
},
onLoad: function() {
cc.game.addPersistRootNode(this.node);
this.playBgMusic();
},
playBgMusic: function() {
this.stopBgMusic();
this.bgMusicChannel = cc.audioEngine.play(this.bgMusic, !0, .5);
},
stopBgMusic: function() {
if (void 0 !== this.bgMusicChannel) {
cc.audioEngine.stop(this.bgMusicChannel);
this.bgMusicChannel = void 0;
}
}
});
cc._RF.pop();
}, {
"./alert": "alert"
} ],
buyMaterial: [ function(e, t) {
"use strict";
cc._RF.push(t, "91a34Mi50JKLa3zXudgs2S9", "buyMaterial");
var i = e("../game/alert").show, a = e("../shop/gameData"), o = a.foodMaterials, n = a.shopData;
cc.Class({
extends: cc.Component,
properties: {
goods: cc.Object,
cangku: cc.Label,
ice: cc.Label,
number: cc.Label
},
onEnable: function() {
this.buyMaterial();
},
buyMaterial: function() {
this.goods = JSON.parse(JSON.stringify(o.find(function(e) {
return e.id == material.id;
})));
},
ensure: function(e) {
var t = this, a = e.target.parent.id, o = n.shopList.find(function(e) {
return e.id == a;
}), s = this.goods.count * this.goods.cost;
cc.log(this.goods.ice);
if (o.money < s) i("订单提醒", "您公司的余额不足"); else {
var c = 0 == this.goods.stock ? this.goods.ice * this.goods.count : this.goods.stock * this.goods.count;
i("订单确认", "将花费" + s + "元,占空间" + c, function(e) {
cc.log(e);
if (0 != s) {
if (0 != t.goods.ice) if (o.leftIce >= c) {
o.stock.find(function(e) {
return e.id == t.goods.id;
});
o.leftIce -= c;
o.stock.push(JSON.parse(JSON.stringify(t.goods)));
t.goods.count = 0;
} else setTimeout(function() {
i("仓库反馈", "店铺仓库放不下啦！");
}, 400); else if (o.leftStock >= c) {
o.stock.find(function(e) {
return e.id == t.goods.id;
});
o.leftStock -= c;
o.stock.push(JSON.parse(JSON.stringify(t.goods)));
t.goods.count = 0;
t.number.string = 0;
} else setTimeout(function() {
i("仓库反馈", "店铺仓库放不下啦！");
}, 400);
o.money -= s;
t.cangku.string = o.leftStock;
t.ice.string = o.leftIce;
}
});
}
},
add: function() {
cc.log(this.goods);
this.goods.count += 10;
this.goods.count > 999 && (this.goods.count = 999);
this.number.string = this.goods.count;
},
reduce: function() {
this.goods.count -= 10;
this.goods.count < 0 && (this.goods.count = 0);
this.number.string = this.goods.count;
},
calStock: function() {
cc.log(this.goods);
},
start: function() {}
});
cc._RF.pop();
}, {
"../game/alert": "alert",
"../shop/gameData": "gameData"
} ],
cloud: [ function(e, t) {
"use strict";
cc._RF.push(t, "f9929JSAYhKR7C34dP6eiBH", "cloud");
cc.cloud = {
initialized: !1,
initialize: function(e) {
"undefined" != typeof e && null !== e || (e = cc_cloud_commonConfig);
if ("tencent" === e.platform) {
if (this.initialized) return this.tencentApp;
cloudbase && cloudbase.useAdapters(window.adapter);
this.tencentApp = cloudbase ? cloudbase.init(e.tencent) : null;
this.initialized = !0;
return this.tencentApp;
}
return null;
}
};
cc._RF.pop();
}, {} ],
enterScene: [ function(e, t) {
"use strict";
cc._RF.push(t, "45660491/FEvYQrqTnWfzkn", "enterScene");
e("../ads/ADS").ADS, e("../ads/video").videoAds;
var i = e("../game/alert"), a = i.show, o = i.msg, n = e("../util/gameResources"), s = n.initPrefab, c = n.initPrefabPool;
e("../util/network").default;
cc.Class({
extends: cc.Component,
properties: {
startBtn: cc.Button,
shopName: cc.EditBox,
btnLabel: cc.Label
},
mode: 0,
onLoad: function() {
cc.debug.setDisplayStats(!1);
s().then(function() {
c();
});
this.app = cc.cloud && cc.cloud.initialize();
this.auth = this.app.auth();
if (cc.sys.localStorage.getItem("shopList")) {
this.shopName.string = cc.sys.localStorage.getItem("shopName");
this.btnLabel.string = "继续游戏";
this.mode = 1;
}
},
start: function() {},
getStart: function() {
var e = this;
if (this.mode) cc.director.loadScene("home"); else {
var t = this.shopName.string;
t.length > 4 || t.length <= 0 ? a("未来集团", "名字太长了，记不住,请保持4字内") : this.auth.anonymousAuthProvider().signIn().then(function() {
console.log("TCB inited");
e.app.callFunction({
name: "rank",
data: {
action: "register",
params: {
name: t
}
}
}).then(function(e) {
console.log("function", e);
if (e.result.data.length > 0) a("未来科技", "该品牌已存在"); else {
window.shopName = t;
cc.sys.localStorage.setItem("shopName", t);
o("玩命加载中....");
cc.director.loadScene("home");
}
}).catch(console.error);
});
}
}
});
cc._RF.pop();
}, {
"../ads/ADS": "ADS",
"../ads/video": "video",
"../game/alert": "alert",
"../util/gameResources": "gameResources",
"../util/network": "network"
} ],
foodItem: [ function(e, t) {
"use strict";
cc._RF.push(t, "fca3aMp8+BIAZYy/xbhhU62", "foodItem");
var i = e("../game/alert"), a = i.show, o = i.msg, n = e("../util/EventServices");
e("./gameData").shopData;
cc.Class({
extends: cc.Component,
properties: {
price: cc.Node,
level: cc.Label,
levelCost: cc.Label
},
start: function() {
var e = this;
this.node.on("on_scroll_view", function(t) {
e.node.opacity = t;
});
},
unlock: function(e) {
var t = shop.menuList.find(function(t) {
return t.id == e.target.parent.id;
});
if (t.unlockMoney <= shop.money && t.unlockFamous <= shop.famous) {
t.state = 1;
a("未来餐饮", "恭喜解锁新配方");
shop.foodList.push(t);
var i = shop.foodList.findIndex(function(t) {
return t.id == e.target.parent.id;
});
shop.famous -= t.unlockFamous;
shop.money -= t.unlockMoney;
n.publish("unlockFood", t, i);
this.node.destroy();
} else a("未来餐饮", "条件不够呢，老板");
},
upPrice: function(e) {
var t = shop.menuList.find(function(t) {
return t.id == e.target.parent.id;
});
if (6 != t.level) {
var i = t.level * shop.level * 200;
if (shop.money < i) o("金钱不足啊，大哥"); else {
t.price += parseInt(.3 * t.price);
shop.money -= i;
t.level += 1;
this.price.getComponent(cc.Label).string = parseInt(t.price) + "元";
t.levelCost = t.level * shop.level * 200;
this.level.string = t.level + "级";
this.levelCost.string = t.levelCost + "元";
a("店铺升级", "恭喜升级了新配方,价格提升20%");
}
} else a("店铺升级", "已经是最新配方了噢");
},
ads: function() {
var e = Math.ceil(5 * Math.random());
shop.famous += e;
a("广告提醒", "花了100元发传单，知名度提升" + e);
}
});
cc._RF.pop();
}, {
"../game/alert": "alert",
"../util/EventServices": "EventServices",
"./gameData": "gameData"
} ],
fujian: [ function(e, t) {
"use strict";
cc._RF.push(t, "c75c3Yggc5L75PSm3rcOjLA", "fujian");
e("../ads/ADS").ADS;
var i = e("../ads/video").videoAds, a = e("../game/alert").show, o = e("../shop/gameData"), n = o.shopData, s = o.player;
cc.Class({
extends: cc.Component,
properties: {
nanping: cc.Node,
ningde: cc.Node,
sanming: cc.Node,
fuzhou: cc.Node,
longyan: cc.Node,
quanzhou: cc.Node,
putian: cc.Node,
zhangzhou: cc.Node,
xiamen: cc.Node
},
onEnable: function() {
var e = this;
this.scheduleOnce(function() {
e.getShopList();
}, .2);
},
start: function() {},
getShopList: function() {
var e = this;
n.shopList.forEach(function(t) {
1 != t.status && 2 != t.status || (e[t.id].color = cc.Color.ORANGE);
});
},
openShop: function(e, t) {
var o = n.shopList.find(function(e) {
return e.id == t;
});
if (1 == o.status || 2 == o.status) return a("小秘提示", "店铺已开通，快去经营吧");
s.money >= o.startMoney ? a("小秘提示", "开通店铺吗？需要" + formatMoney(o.startMoney), function(t) {
if (!t) return !1;
s.money -= o.startMoney;
o.status = 2;
e.currentTarget.color = cc.Color.ORANGE;
setTimeout(function() {
a("小秘提示", "店铺已开通，快去经营吧");
}, 400);
}) : a("小秘提示", "金钱不足噢，是否观看广告解锁？", function(t) {
t && i.showAd(function(t) {
if (t) {
o.status = 2;
e.currentTarget.color = cc.Color.ORANGE;
}
});
});
}
});
cc._RF.pop();
}, {
"../ads/ADS": "ADS",
"../ads/video": "video",
"../game/alert": "alert",
"../shop/gameData": "gameData"
} ],
gameConfig: [ function(e, t) {
"use strict";
cc._RF.push(t, "f0471zrwCBNX7ZpfKGKmwY4", "gameConfig");
cc.Class({
extends: cc.Component,
properties: {},
start: function() {}
});
cc._RF.pop();
}, {} ],
gameData: [ function(e, t) {
"use strict";
cc._RF.push(t, "adf94Bm3O1IXb2HpeKHFBED", "gameData");
t.exports = {
player: cc.sys.localStorage.getItem("player") ? JSON.parse(cc.sys.localStorage.getItem("player")) : JSON.parse(JSON.stringify({
playerName: "陈东铭",
money: 2e4,
joinCount: 21,
selfCount: 22,
income: 1e3,
storeCount: 32,
mapOpen: !1
})),
shopData: cc.sys.localStorage.getItem("shopList") ? JSON.parse(cc.sys.localStorage.getItem("shopList")) : JSON.parse(JSON.stringify({
openMap: {
canOpen: !1,
openMoney: 3e5,
canStock: !1
},
shopList: [ {
id: "nanping",
shopName: "南平店",
workers: 3,
startMoney: 1e5,
income: 0,
customer: 3,
status: 1,
money: 1e4,
famous: 150,
rent: 29e3,
cost: 0,
manager: 1,
loaction: 6,
stock: 220,
level: 1,
ice: 100,
leftStock: 100,
leftIce: 100
}, {
id: "ningde",
shopName: "宁德店",
workers: 3,
startMoney: 2e5,
income: 3e3,
customer: 3,
status: 0,
money: 1e3,
famous: 55,
rent: 29e3,
cost: 0,
manager: 1,
loaction: 8,
stock: 260,
level: 1,
ice: 150,
leftStock: 100,
leftIce: 150
}, {
id: "sanming",
shopName: "三明店",
workers: 3,
startMoney: 3e5,
income: 3e3,
customer: 3,
status: 0,
money: 1e3,
famous: 13,
rent: 3e4,
cost: 0,
manager: 1,
loaction: 6,
stock: 260,
level: 1,
ice: 80,
leftStock: 100,
leftIce: 80
}, {
id: "fuzhou",
shopName: "福州店",
workers: 3,
startMoney: 5e5,
income: 3e3,
customer: 3,
status: 0,
money: 100,
famous: 13,
rent: 63e3,
cost: 0,
manager: 1,
loaction: 16,
stock: 200,
level: 1,
ice: 150,
leftStock: 100,
leftIce: 150
}, {
id: "longyan",
shopName: "龙岩店",
workers: 3,
startMoney: 3e5,
income: 3e3,
customer: 3,
status: 0,
money: 100,
famous: 13,
rent: 39e3,
cost: 0,
manager: 1,
loaction: 10,
stock: 220,
level: 1,
ice: 100,
leftStock: 100,
leftIce: 100
}, {
id: "putian",
shopName: "莆田店",
workers: 3,
startMoney: 3e5,
income: 3e3,
customer: 3,
status: 0,
money: 100,
famous: 13,
rent: 42e3,
cost: 0,
manager: 1,
loaction: 10,
stock: 220,
level: 1,
ice: 130,
leftStock: 100,
leftIce: 130
}, {
id: "quanzhou",
shopName: "泉州店",
workers: 3,
startMoney: 3e5,
income: 3e3,
customer: 3,
status: 0,
money: 100,
famous: 12,
rent: 52e3,
cost: 0,
manager: 1,
loaction: 15,
stock: 180,
level: 1,
ice: 90,
leftStock: 100,
leftIce: 90
}, {
id: "xiamen",
shopName: "厦门店",
workers: 3,
startMoney: 6e5,
income: 3e3,
customer: 3,
status: 0,
money: 100,
famous: 12,
rent: 8e4,
cost: 0,
manager: 1,
loaction: 29,
stock: 200,
level: 1,
ice: 120,
leftStock: 100,
leftIce: 120
}, {
id: "zhangzhou",
shopName: "漳州店",
workers: 3,
startMoney: 3e5,
income: 3e3,
customer: 3,
status: 0,
money: 100,
famous: 12,
rent: 42e3,
cost: 0,
manager: 1,
loaction: 19,
stock: 180,
level: 1,
ice: 109,
leftStock: 100,
leftIce: 109
} ]
})),
adPosition: cc.sys.localStorage.getItem("adPosition") ? JSON.parse(cc.sys.localStorage.getItem("adPosition")) : JSON.parse(JSON.stringify({
speed: !1,
map: !1,
oneKey: !1
})),
weatherList: [ {
weatherId: "baoyu",
weatherName: "暴雨",
effect: 8
}, {
weatherId: "daqingtian",
weatherName: "烈日炎炎",
effect: 8
}, {
weatherId: "qingtian",
weatherName: "晴天",
effect: 1
}, {
weatherId: "taifeng",
weatherName: "台风",
effect: 9
}, {
weatherId: "wumai",
weatherName: "雾霾",
effect: 6
}, {
weatherId: "xiaoyu",
weatherName: "小雨",
effect: 2
}, {
weatherId: "yintian",
weatherName: "阴天",
effect: 1
}, {
weatherId: "yutian",
weatherName: "雨天",
effect: 2
} ],
customerList: [ {
id: 1,
name: "普通顾客",
money: 20,
level: 1
}, {
id: 2,
name: "中级顾客",
money: 50,
level: 2
}, {
id: 3,
name: "高级顾客",
money: 330,
level: 3
}, {
id: 4,
name: "超级顾客",
money: 1e3,
level: 4
}, {
id: 5,
name: "穷鬼",
money: 13,
level: 5
} ],
foodList: [ {
level: 1,
list: [ {
id: 1,
name: "四季奶青",
level: 1,
cost: 1,
price: 11,
koubei: 1,
saveTime: 12,
materials: [ "bingkuai", "tang" ],
state: 0,
stock: 12
}, {
id: 2,
name: "波霸奶茶",
level: 1,
cost: 1,
price: 12,
koubei: 1,
saveTime: 12,
materials: [ "tang", "dahongpao", "caomei" ],
state: 0,
stock: 12
}, {
id: 3,
name: "杨枝乱露",
level: 1,
cost: 1,
price: 11,
koubei: 1,
saveTime: 12,
materials: [ "mangguo", "tang", "ximi" ],
state: 1,
stock: 12
}, {
id: 4,
name: "柠檬汁",
level: 1,
cost: 1,
price: 11,
koubei: 1,
saveTime: 12,
materials: [ "mugua", "dahongpao", "tang" ],
state: 1,
stock: 12
}, {
id: 5,
name: "四季春茶",
level: 1,
cost: 1,
price: 12,
koubei: 1,
saveTime: 12,
materials: [ "mangguo", "dahongpao", "tang" ],
state: 1,
stock: 12
}, {
id: 6,
name: "柠檬奶茶",
level: 1,
cost: 2,
price: 12,
koubei: 1,
saveTime: 12,
materials: [ "ningmeng", "dahongpao", "tang" ],
state: 1,
stock: 12
}, {
id: 7,
name: "红茶玛奇朵",
level: 1,
cost: 1,
price: 11,
koubei: 1,
saveTime: 12,
materials: [ "hongdou", "ximi", "tang" ],
state: 1,
stock: 12
}, {
id: 8,
name: "Good抹柠",
level: 1,
cost: 3,
price: 18,
koubei: 1,
saveTime: 12,
materials: [ "hongdou", "putaogan", "tang", "yuyuan" ],
state: 1,
stock: 12
}, {
id: 9,
name: "茶冻奶绿",
level: 1,
cost: 4,
price: 21,
koubei: 1,
saveTime: 12,
materials: [ "hongdou", "putaogan", "qiaokeli", "tang", "yuyuan" ],
state: 1,
stock: 12
}, {
id: 10,
name: "百香三重奏",
level: 1,
cost: 5,
price: 18,
koubei: 1,
saveTime: 12,
materials: [ "mugua", "dahongpao", "xiannai" ],
state: 1,
stock: 12
}, {
id: 11,
name: "冰淇淋红茶",
level: 1,
cost: 4,
price: 19,
koubei: 1,
saveTime: 12,
materials: [ "mangguo", "qiaokeli", "tang" ],
state: 1,
stock: 12
} ]
}, {
level: 2,
list: [ {
id: 12,
name: "黄金珍奶",
level: 1,
cost: 2,
price: 16,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "tang", "shuimitao" ],
stock: 12
}, {
id: 13,
name: "霸王水果茶",
level: 1,
cost: 3,
price: 15,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "tang", "xigua" ],
stock: 12
}, {
id: 14,
name: "原谅绿茶",
level: 1,
cost: 4,
price: 15,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "lvdou", "tang" ],
stock: 12
}, {
id: 15,
name: "一颗柠檬",
level: 1,
cost: 3,
price: 15,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "mangguo", "tang" ],
stock: 12
}, {
id: 16,
name: "雪山多肉",
level: 1,
cost: 3,
price: 17,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 17,
name: "金菠萝",
level: 1,
cost: 3,
price: 16,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "xigua", "qiaokeli", "tang" ],
stock: 12
}, {
id: 36,
name: "葡萄波茶",
level: 1,
cost: 4,
price: 16,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 18,
name: "桃香奶青",
level: 1,
cost: 4,
price: 13,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 19,
name: "多肉葡萄",
level: 1,
cost: 3,
price: 15,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 21,
name: "桃花奶茶",
level: 1,
cost: 3,
price: 17,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 22,
name: "橙香绿茶",
level: 1,
cost: 5,
price: 23,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 23,
name: "芒果波霸",
level: 1,
cost: 3,
price: 15,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 24,
name: "初恋柠檬",
level: 1,
cost: 3,
price: 16,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 25,
name: "霸气橙香",
level: 1,
cost: 3,
price: 17,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
} ]
}, {
level: 3,
list: [ {
id: 32,
name: "马不停蹄",
level: 1,
cost: 22,
price: 46,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 33,
name: "皮爆柠",
level: 1,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 34,
name: "多肉荔枝",
level: 1,
cost: 14,
price: 55,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "tudou" ],
stock: 12
}, {
id: 35,
name: "红柚波露",
level: 1,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "baiguo" ],
stock: 12
}, {
id: 40,
name: "格雷兄弟",
level: 1,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "jitui" ],
stock: 12
}, {
id: 45,
name: "草莓青柠",
level: 1,
cost: 13,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "yatou" ],
stock: 12
}, {
id: 37,
name: "牛油养乐多",
level: 1,
cost: 14,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "xiangchang" ],
stock: 12
}, {
id: 38,
name: "观音奶茶",
level: 1,
cost: 14,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "gongwan" ],
stock: 12
}, {
id: 39,
name: "西瓜桃冰",
level: 1,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "jidan", "mianpi" ],
stock: 12
}, {
id: 31,
name: "青羔奶茶",
level: 1,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "yazhua" ],
stock: 12
}, {
id: 41,
name: "桃芝妖妖",
level: 1,
cost: 13,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "jizhua" ],
stock: 12
}, {
id: 42,
name: "花果山",
level: 1,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "jipai" ],
stock: 12
}, {
id: 43,
name: "亿杯桃",
level: 1,
cost: 23,
price: 26,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "yangrou" ],
stock: 12
}, {
id: 44,
name: "杨梅覆雪",
level: 1,
cost: 13,
price: 27,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "niurou" ],
stock: 12
} ]
}, {
level: 4,
list: [ {
id: 42,
name: "七彩冰花",
level: 2,
cost: 22,
price: 46,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 43,
name: "七彩烧仙草",
level: 2,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 44,
name: "绿豆冰沙",
level: 2,
cost: 14,
price: 55,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 45,
name: "芒果冰沙",
level: 2,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 45,
name: "金钻奶茶",
level: 2,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 46,
name: "西瓜冰沙",
level: 2,
cost: 13,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 47,
name: "红豆西米露",
level: 2,
cost: 14,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 48,
name: "熊猫奶盖",
level: 2,
cost: 14,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 49,
name: "哈密5冰沙",
level: 2,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 41,
name: "苹果冰沙",
level: 2,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 42,
name: "芒果汁",
level: 2,
cost: 13,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 43,
name: "水蜜桃冰沙",
level: 2,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 44,
name: "柳橙冰沙",
level: 2,
cost: 23,
price: 26,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 45,
name: "密梨冰沙",
level: 2,
cost: 13,
price: 27,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
} ]
}, {
level: 5,
list: [ {
id: 52,
name: "七彩冰花",
level: 2,
cost: 22,
price: 46,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 53,
name: "七彩烧仙草",
level: 2,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 54,
name: "绿豆冰沙",
level: 2,
cost: 14,
price: 55,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 55,
name: "芒果冰沙",
level: 2,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 55,
name: "金钻奶茶",
level: 2,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 56,
name: "西瓜冰沙",
level: 2,
cost: 13,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 57,
name: "红豆西米露",
level: 2,
cost: 14,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 58,
name: "熊猫奶盖",
level: 2,
cost: 14,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 59,
name: "哈密瓜冰沙",
level: 2,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 51,
name: "苹果冰沙",
level: 2,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 52,
name: "芒果汁",
level: 2,
cost: 13,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 53,
name: "水蜜桃冰沙",
level: 2,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 54,
name: "柳橙冰沙",
level: 2,
cost: 23,
price: 26,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 55,
name: "密梨冰沙",
level: 2,
cost: 13,
price: 27,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
} ]
} ],
foodMaterials: [ {
id: "bingkuai",
name: "冰块",
saveTime: 999,
cost: .5,
transport: 1,
stock: 0,
ice: .1,
count: 0
}, {
id: "tang",
name: "冰糖",
saveTime: 999,
cost: .5,
transport: 2,
stock: .1,
ice: 0,
count: 0
}, {
id: "caomei",
name: "草莓",
saveTime: 48,
cost: .5,
transport: 2,
stock: 0,
ice: .2,
count: 0
}, {
id: "niunai",
name: "牛奶",
saveTime: 24,
cost: 2,
transport: 2,
stock: .3,
ice: 0,
count: 0
}, {
id: "mangguo",
name: "芒果",
saveTime: 48,
cost: 3,
transport: 4,
stock: .5,
ice: 0,
count: 0
}, {
id: "ximi",
name: "西米",
saveTime: 96,
cost: 1,
transport: 2,
stock: .2,
ice: 0,
count: 0
}, {
id: "mugua",
name: "木瓜",
saveTime: 24,
cost: 5,
transport: 3,
stock: 0,
ice: 2,
count: 0
}, {
id: "ningmeng",
name: "柠檬",
saveTime: 96,
cost: 3,
transport: 3,
stock: 0,
ice: 1,
count: 0
}, {
id: "hongdou",
name: "红豆",
saveTime: 96,
cost: 4,
transport: 3,
stock: 1,
ice: 0,
count: 0
}, {
id: "xiancao",
name: "仙草",
saveTime: 24,
cost: 3,
transport: 3,
stock: 0,
ice: .2,
count: 0
}, {
id: "putaogan",
name: "葡萄干",
saveTime: 96,
cost: .5,
transport: 2,
stock: 0,
ice: .2,
count: 0
}, {
id: "xiannai",
name: "鲜奶",
saveTime: 48,
cost: 5,
transport: 6,
stock: 0,
ice: 1,
count: 0
}, {
id: "yuyuan",
name: "芋圆",
saveTime: 24,
cost: .5,
transport: 6,
stock: 0,
ice: .2,
count: 0
}, {
id: "qiaokeli",
name: "巧克力",
saveTime: 24,
cost: 3,
transport: 6,
stock: 0,
ice: .3,
count: 0
}, {
id: "dahongpao",
name: "大红袍",
saveTime: 240,
cost: 4,
transport: 12,
stock: 0,
ice: .2,
count: 0
}, {
id: "huolongguo",
name: "火龙果",
saveTime: 24,
cost: 5,
transport: 12,
stock: 0,
ice: .5,
count: 0
}, {
id: "lvdou",
name: "绿豆",
saveTime: 240,
cost: 1,
transport: 12,
stock: .2,
ice: 0,
count: 0
}, {
id: "xigua",
name: "西瓜",
saveTime: 120,
cost: 3,
transport: 24,
stock: 1,
ice: 0,
count: 0
}, {
id: "shuimitao",
name: "水蜜桃",
saveTime: 48,
cost: 2,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "tudou",
name: "土豆",
saveTime: 96,
cost: 1,
transport: 24,
stock: .5,
ice: 0,
count: 0
}, {
id: "jitui",
name: "鸡腿",
saveTime: 48,
cost: 3,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "baiguo",
name: "白果",
saveTime: 48,
cost: 1,
transport: 24,
stock: .5,
ice: 0,
count: 0
}, {
id: "xiangchang",
name: "香肠",
saveTime: 96,
cost: 1,
transport: 24,
stock: 0,
ice: 1,
count: 0
}, {
id: "gongwan",
name: "贡丸",
saveTime: 48,
cost: 1,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "yangrou",
name: "羊肉",
saveTime: 48,
cost: 2,
transport: 24,
stock: 0,
ice: 1,
count: 0
}, {
id: "yatou",
name: "鸭头",
saveTime: 48,
cost: 1,
transport: 24,
stock: 0,
ice: 1,
count: 0
}, {
id: "jizhua",
name: "鸡爪",
saveTime: 48,
cost: 2,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "jipai",
name: "鸡排",
saveTime: 48,
cost: 1,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "mianpi",
name: "面皮",
saveTime: 96,
cost: 1,
transport: 24,
stock: 0,
ice: .2,
count: 0
}, {
id: "jidan",
name: "鸡蛋",
saveTime: 96,
cost: 1,
transport: 24,
stock: 0,
ice: .4,
count: 0
}, {
id: "niurou",
name: "牛肉",
saveTime: 48,
cost: 3,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "yazhua",
name: "鸭爪",
saveTime: 96,
cost: 1,
transport: 24,
stock: 0,
ice: .5,
count: 0
} ],
time: cc.sys.localStorage.getItem("time") ? JSON.parse(cc.sys.localStorage.getItem("time")) : JSON.parse(JSON.stringify({
min: 1,
hour: 10,
day: 1
})),
saleList: [],
tips: [ "高级店铺可提升客单价噢", "高级顾客的等待时间更短了", "可在进货市场选择批量进货，简化操作", "人在家中坐，奶茶自然来", "台风天气许多顾客都不敢出门", "下午到晚上可能会爆发一波人流，请提前做好准备", "店铺菜品越丰富，顾客的消费意愿更强噢", "尝试提升店铺的档次，高级顾客消费能力更强噢", "开分店容易导致手忙脚乱", "每个月的1号可以和员工解约", "雇佣中解约会被员工投诉并罚款噢，请慎重", "可以通过消费记录查看顾客的消费情况" ],
achieveList: [ {
id: 1,
title: "奶茶王子",
content: "累计卖出奶茶2000杯",
cur: 0,
all: 2e3,
type: "sale"
}, {
id: 2,
title: "奶茶大亨",
content: "累计卖出奶茶10000杯",
cur: 2e3,
all: 1e4,
type: "sale"
}, {
id: 3,
title: "奶茶王者",
content: "累计卖出奶茶20000杯",
cur: 0,
all: 2e4,
type: "sale"
}, {
id: 4,
title: "奶茶霸主",
content: "累计卖出奶茶100000杯",
cur: 0,
all: 1e5,
type: "sale"
}, {
id: 4,
title: "中国联盟茶主",
content: "累计卖出奶茶1000000杯",
cur: 0,
all: 1e6,
type: "sale"
}, {
id: 4,
title: "世界联盟茶王",
content: "累计卖出奶茶10000000杯",
cur: 0,
all: 1e7,
type: "sale"
}, {
id: 4,
title: "奶茶妹妹最爱",
content: "累计卖出奶茶100000000杯",
cur: 0,
all: 1e8,
type: "sale"
}, {
id: 5,
title: "分店小才子",
content: "开出第1家分店",
cur: 0,
all: 1,
type: "shop"
}, {
id: 6,
title: "商业小天才",
content: "累计开出5家分店",
cur: 0,
all: 5,
type: "shop"
}, {
id: 7,
title: "商业奇才",
content: "累计开出9家分店",
cur: 0,
all: 9,
type: "shop"
}, {
id: 8,
title: "融资新贵",
content: "累计获取融资1w",
cur: 0,
all: 1,
type: "ad"
}, {
id: 9,
title: "融资小天才",
content: "累计获取融资10w",
cur: 0,
all: 10,
type: "ad"
}, {
id: 10,
title: "融资高手",
content: "累计获取融资30w",
cur: 0,
all: 30,
type: "ad"
}, {
id: 11,
title: "融资高手",
content: "累计获取融资50w",
cur: 0,
all: 50,
type: "ad"
}, {
id: 12,
title: "融资大亨",
content: "累计获取融资80w",
cur: 0,
all: 80,
type: "ad"
}, {
id: 13,
title: "融资天才",
content: "累计获取融资100w",
cur: 0,
all: 100,
type: "ad"
}, {
id: 14,
title: "融资大神",
content: "累计获取融资520w",
cur: 0,
all: 520,
type: "ad"
}, {
id: 15,
title: "第一桶金",
content: "累计个人财富达到100w",
cur: 0,
all: 1e6,
type: "money"
}, {
id: 16,
title: "1个小目标",
content: "累计个人财富达到1Y",
cur: 0,
all: 1e8,
type: "money"
}, {
id: 17,
title: "5个小目标",
content: "累计个人财富达到5Y",
cur: 0,
all: 5e8,
type: "money"
}, {
id: 18,
title: "10个小目标",
content: "累计个人财富达到10Y",
cur: 0,
all: 1e9,
type: "money"
} ],
times: cc.sys.localStorage.getItem("times") ? JSON.parse(cc.sys.localStorage.getItem("times")) : JSON.parse(JSON.stringify({
count: 4,
lastTime: {
month: -1,
day: -1
}
})),
achieveProcess: cc.sys.localStorage.getItem("achieveProcess") ? JSON.parse(cc.sys.localStorage.getItem("achieveProcess")) : JSON.parse(JSON.stringify({
sale: 0,
shop: 0,
ad: 0,
money: 0
}))
};
cc._RF.pop();
}, {} ],
gameInitData: [ function(e, t) {
"use strict";
cc._RF.push(t, "f0c6c+K32lBapcjA/MBB1u3", "gameInitData");
t.exports = {
player1: {
playerName: "陈东铭",
money: 3e6,
joinCount: 21,
selfCount: 22,
income: 1e3,
storeCount: 32,
mapOpen: !1
},
shopData1: {
openMap: {
canOpen: !0,
openMoney: 1e6
},
shopList: [ {
id: "nanping",
shopName: "南平店",
workers: 3,
startMoney: 1e5,
income: 3e3,
customer: 3,
status: 1,
money: 1e5,
famous: 1222,
rent: 3e3,
cost: 0,
manager: 1,
loaction: 6,
stock: 220,
level: 1,
ice: 100,
leftStock: 100,
leftIce: 100
}, {
id: "ningde",
shopName: "宁德店",
workers: 3,
startMoney: 2e5,
income: 3e3,
customer: 3,
status: 2,
money: 100,
famous: 12,
rent: 5e3,
cost: 0,
manager: 1,
loaction: 8,
stock: 260,
level: 1,
ice: 150,
leftStock: 100,
leftIce: 150
}, {
id: "sanming",
shopName: "三明店",
workers: 3,
startMoney: 3e5,
income: 3e3,
customer: 3,
status: 2,
money: 100,
famous: 12,
rent: 4e3,
cost: 0,
manager: 1,
loaction: 6,
stock: 260,
level: 1,
ice: 80,
leftStock: 100,
leftIce: 80
}, {
id: "fuzhou",
shopName: "福州店",
workers: 3,
startMoney: 5e5,
income: 3e3,
customer: 3,
status: 1,
money: 100,
famous: 12,
rent: 13e3,
cost: 0,
manager: 1,
loaction: 16,
stock: 200,
level: 1,
ice: 150,
leftStock: 100,
leftIce: 150
}, {
id: "longyan",
shopName: "龙岩店",
workers: 3,
startMoney: 3e5,
income: 3e3,
customer: 3,
status: 0,
money: 100,
famous: 12,
rent: 7e3,
cost: 0,
manager: 1,
loaction: 10,
stock: 220,
level: 1,
ice: 100,
leftStock: 100,
leftIce: 100
}, {
id: "putian",
shopName: "莆田店",
workers: 3,
startMoney: 3e5,
income: 3e3,
customer: 3,
status: 0,
money: 100,
famous: 12,
rent: 8e3,
cost: 0,
manager: 1,
loaction: 10,
stock: 220,
level: 1,
ice: 130,
leftStock: 100,
leftIce: 130
}, {
id: "quanzhou",
shopName: "泉州店",
workers: 3,
startMoney: 3e5,
income: 3e3,
customer: 3,
status: 0,
money: 100,
famous: 12,
rent: 5e3,
cost: 0,
manager: 1,
loaction: 15,
stock: 180,
level: 1,
ice: 90,
leftStock: 100,
leftIce: 90
}, {
id: "xiamen",
shopName: "厦门店",
workers: 3,
startMoney: 6e5,
income: 3e3,
customer: 3,
status: 0,
money: 100,
famous: 12,
rent: 2e4,
cost: 0,
manager: 1,
loaction: 29,
stock: 200,
level: 1,
ice: 120,
leftStock: 100,
leftIce: 120
}, {
id: "zhangzhou",
shopName: "漳州店",
workers: 3,
startMoney: 3e5,
income: 3e3,
customer: 3,
status: 0,
money: 100,
famous: 12,
rent: 6e3,
cost: 0,
manager: 1,
loaction: 14,
stock: 180,
level: 1,
ice: 109,
leftStock: 100,
leftIce: 109
} ]
},
adPosition1: {
speed: !1,
map: !0
},
weatherList: [ {
weatherId: "baoyu",
weatherName: "暴雨",
effect: 8
}, {
weatherId: "daqingtian",
weatherName: "烈日炎炎",
effect: 8
}, {
weatherId: "qingtian",
weatherName: "晴天",
effect: 7
}, {
weatherId: "taifeng",
weatherName: "台风",
effect: 9
}, {
weatherId: "wumai",
weatherName: "雾霾",
effect: 6
}, {
weatherId: "xiaoyu",
weatherName: "小雨",
effect: 5
}, {
weatherId: "yintian",
weatherName: "阴天",
effect: 4
}, {
weatherId: "yutian",
weatherName: "雨天",
effect: 3
} ],
customerList: [ {
id: 1,
name: "普通顾客",
money: 20,
level: 1
}, {
id: 2,
name: "中级顾客",
money: 50,
level: 2
}, {
id: 3,
name: "高级顾客",
money: 330,
level: 3
}, {
id: 4,
name: "超级顾客",
money: 1e3,
level: 4
}, {
id: 5,
name: "穷鬼",
money: 13,
level: 5
} ],
foodList1: [ {
level: 1,
list: [ {
id: 1,
name: "四季奶青",
level: 1,
cost: 1,
price: 11,
koubei: 1,
saveTime: 12,
materials: [ "bingkuai", "tang" ],
state: 0,
stock: 12
}, {
id: 2,
name: "波霸奶茶",
level: 1,
cost: 1,
price: 12,
koubei: 1,
saveTime: 12,
materials: [ "tang", "dahongpao", "caomei" ],
state: 0,
stock: 12
}, {
id: 3,
name: "杨枝乱露",
level: 1,
cost: 1,
price: 11,
koubei: 1,
saveTime: 12,
materials: [ "mangguo", "tang", "ximi" ],
state: 1,
stock: 12
}, {
id: 4,
name: "柠檬汁",
level: 1,
cost: 1,
price: 11,
koubei: 1,
saveTime: 12,
materials: [ "mugua", "dahongpao", "tang" ],
state: 1,
stock: 12
}, {
id: 5,
name: "四季春茶",
level: 1,
cost: 1,
price: 12,
koubei: 1,
saveTime: 12,
materials: [ "mangguo", "dahongpao", "tang" ],
state: 1,
stock: 12
}, {
id: 6,
name: "柠檬奶茶",
level: 1,
cost: 2,
price: 12,
koubei: 1,
saveTime: 12,
materials: [ "ningmeng", "dahongpao", "tang" ],
state: 1,
stock: 12
}, {
id: 7,
name: "红茶玛奇朵",
level: 1,
cost: 1,
price: 11,
koubei: 1,
saveTime: 12,
materials: [ "hongdou", "ximi", "tang" ],
state: 1,
stock: 12
}, {
id: 8,
name: "Good抹柠",
level: 1,
cost: 3,
price: 18,
koubei: 1,
saveTime: 12,
materials: [ "hongdou", "putaogan", "tang", "yuyuan" ],
state: 1,
stock: 12
}, {
id: 9,
name: "茶冻奶绿",
level: 1,
cost: 4,
price: 21,
koubei: 1,
saveTime: 12,
materials: [ "hongdou", "putaogan", "qiaokeli", "tang", "yuyuan" ],
state: 1,
stock: 12
}, {
id: 10,
name: "百香三重奏",
level: 1,
cost: 5,
price: 18,
koubei: 1,
saveTime: 12,
materials: [ "mugua", "dahongpao", "xiannai" ],
state: 1,
stock: 12
}, {
id: 11,
name: "冰淇淋红茶",
level: 1,
cost: 4,
price: 19,
koubei: 1,
saveTime: 12,
materials: [ "mangguo", "qiaokeli", "tang" ],
state: 1,
stock: 12
} ]
}, {
level: 2,
list: [ {
id: 12,
name: "黄金珍奶",
level: 2,
cost: 2,
price: 16,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "tang", "shuimitao" ],
stock: 12
}, {
id: 13,
name: "霸王水果茶",
level: 2,
cost: 3,
price: 15,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "tang", "xigua" ],
stock: 12
}, {
id: 14,
name: "原谅绿茶",
level: 2,
cost: 4,
price: 15,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "lvdou", "tang" ],
stock: 12
}, {
id: 15,
name: "一颗柠檬",
level: 2,
cost: 3,
price: 15,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "mangguo", "tang" ],
stock: 12
}, {
id: 15,
name: "雪山多肉",
level: 2,
cost: 3,
price: 17,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 16,
name: "金菠萝",
level: 2,
cost: 3,
price: 16,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "xigua", "qiaokeli", "tang" ],
stock: 12
}, {
id: 17,
name: "葡萄波茶",
level: 2,
cost: 4,
price: 16,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 18,
name: "桃香奶青",
level: 2,
cost: 4,
price: 13,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 19,
name: "多肉葡萄",
level: 2,
cost: 3,
price: 15,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 21,
name: "桃花奶茶",
level: 2,
cost: 3,
price: 17,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 22,
name: "橙香绿茶",
level: 2,
cost: 5,
price: 23,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 23,
name: "芒果波霸",
level: 2,
cost: 3,
price: 15,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 24,
name: "初恋柠檬",
level: 2,
cost: 3,
price: 16,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 25,
name: "霸气橙香",
level: 2,
cost: 3,
price: 17,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
} ]
}, {
level: 3,
list: [ {
id: 32,
name: "马不停蹄",
level: 3,
cost: 22,
price: 46,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 33,
name: "皮爆柠",
level: 3,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 34,
name: "多肉荔枝",
level: 3,
cost: 14,
price: 55,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "tudou" ],
stock: 12
}, {
id: 35,
name: "红柚波露",
level: 3,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "baiguo" ],
stock: 12
}, {
id: 35,
name: "格雷兄弟",
level: 3,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "jitui" ],
stock: 12
}, {
id: 36,
name: "草莓青柠",
level: 3,
cost: 13,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "yatou" ],
stock: 12
}, {
id: 37,
name: "牛油养乐多",
level: 3,
cost: 14,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "xiangchang" ],
stock: 12
}, {
id: 38,
name: "观音奶茶",
level: 3,
cost: 14,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "gongwan" ],
stock: 12
}, {
id: 39,
name: "西瓜桃冰",
level: 3,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "jidan", "mianpi" ],
stock: 12
}, {
id: 31,
name: "青羔奶茶",
level: 3,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "yazhua" ],
stock: 12
}, {
id: 32,
name: "桃芝妖妖",
level: 3,
cost: 13,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "jizhua" ],
stock: 12
}, {
id: 33,
name: "花果山",
level: 3,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "jipai" ],
stock: 12
}, {
id: 34,
name: "亿杯桃",
level: 3,
cost: 23,
price: 26,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "yangrou" ],
stock: 12
}, {
id: 35,
name: "杨梅覆雪",
level: 3,
cost: 13,
price: 27,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "niurou" ],
stock: 12
} ]
}, {
level: 4,
list: [ {
id: 42,
name: "七彩冰花",
level: 2,
cost: 22,
price: 46,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 43,
name: "七彩烧仙草",
level: 2,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 44,
name: "绿豆冰沙",
level: 2,
cost: 14,
price: 55,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 45,
name: "芒果冰沙",
level: 2,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 45,
name: "金钻奶茶",
level: 2,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 46,
name: "西瓜冰沙",
level: 2,
cost: 13,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 47,
name: "红豆西米露",
level: 2,
cost: 14,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 48,
name: "熊猫奶盖",
level: 2,
cost: 14,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 49,
name: "哈密5冰沙",
level: 2,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 41,
name: "苹果冰沙",
level: 2,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 42,
name: "芒果汁",
level: 2,
cost: 13,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 43,
name: "水蜜桃冰沙",
level: 2,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 44,
name: "柳橙冰沙",
level: 2,
cost: 23,
price: 26,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 45,
name: "密梨冰沙",
level: 2,
cost: 13,
price: 27,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
} ]
}, {
level: 5,
list: [ {
id: 52,
name: "七彩冰花",
level: 2,
cost: 22,
price: 46,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 53,
name: "七彩烧仙草",
level: 2,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 54,
name: "绿豆冰沙",
level: 2,
cost: 14,
price: 55,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 55,
name: "芒果冰沙",
level: 2,
cost: 13,
price: 45,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 55,
name: "金钻奶茶",
level: 2,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 56,
name: "西瓜冰沙",
level: 2,
cost: 13,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 57,
name: "红豆西米露",
level: 2,
cost: 14,
price: 36,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 58,
name: "熊猫奶盖",
level: 2,
cost: 14,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 59,
name: "哈密瓜冰沙",
level: 2,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 51,
name: "苹果冰沙",
level: 2,
cost: 13,
price: 37,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 52,
name: "芒果汁",
level: 2,
cost: 13,
price: 33,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 53,
name: "水蜜桃冰沙",
level: 2,
cost: 13,
price: 35,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 54,
name: "柳橙冰沙",
level: 2,
cost: 23,
price: 26,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
}, {
id: 55,
name: "密梨冰沙",
level: 2,
cost: 13,
price: 27,
koubei: 1,
saveTime: 12,
state: 1,
materials: [ "bingkuai", "ximi", "xigua", "tang" ],
stock: 12
} ]
} ],
foodMaterials: [ {
id: "bingkuai",
name: "冰块",
saveTime: 999,
cost: .5,
transport: 1,
stock: 0,
ice: .1,
count: 0
}, {
id: "tang",
name: "冰糖",
saveTime: 999,
cost: .5,
transport: 2,
stock: .1,
ice: 0,
count: 0
}, {
id: "caomei",
name: "草莓",
saveTime: 48,
cost: .5,
transport: 2,
stock: 0,
ice: .2,
count: 0
}, {
id: "niunai",
name: "牛奶",
saveTime: 24,
cost: 2,
transport: 2,
stock: .3,
ice: 0,
count: 0
}, {
id: "mangguo",
name: "芒果",
saveTime: 48,
cost: 3,
transport: 4,
stock: .5,
ice: 0,
count: 0
}, {
id: "ximi",
name: "西米",
saveTime: 96,
cost: 1,
transport: 2,
stock: .2,
ice: 0,
count: 0
}, {
id: "mugua",
name: "木瓜",
saveTime: 24,
cost: 5,
transport: 3,
stock: 0,
ice: 2,
count: 0
}, {
id: "ningmeng",
name: "柠檬",
saveTime: 96,
cost: 3,
transport: 3,
stock: 0,
ice: 1,
count: 0
}, {
id: "hongdou",
name: "红豆",
saveTime: 96,
cost: 4,
transport: 3,
stock: 1,
ice: 0,
count: 0
}, {
id: "xiancao",
name: "仙草",
saveTime: 24,
cost: 3,
transport: 3,
stock: 0,
ice: .2,
count: 0
}, {
id: "putaogan",
name: "葡萄干",
saveTime: 96,
cost: .5,
transport: 2,
stock: 0,
ice: .2,
count: 0
}, {
id: "xiannai",
name: "鲜奶",
saveTime: 48,
cost: 5,
transport: 6,
stock: 0,
ice: 1,
count: 0
}, {
id: "yuyuan",
name: "芋圆",
saveTime: 24,
cost: .5,
transport: 6,
stock: 0,
ice: .2,
count: 0
}, {
id: "qiaokeli",
name: "巧克力",
saveTime: 24,
cost: 3,
transport: 6,
stock: 0,
ice: .3,
count: 0
}, {
id: "dahongpao",
name: "大红袍",
saveTime: 240,
cost: 4,
transport: 12,
stock: 0,
ice: .2,
count: 0
}, {
id: "huolongguo",
name: "火龙果",
saveTime: 24,
cost: 5,
transport: 12,
stock: 0,
ice: .5,
count: 0
}, {
id: "lvdou",
name: "绿豆",
saveTime: 240,
cost: 1,
transport: 12,
stock: .2,
ice: 0,
count: 0
}, {
id: "xigua",
name: "西瓜",
saveTime: 120,
cost: 3,
transport: 24,
stock: 1,
ice: 0,
count: 0
}, {
id: "shuimitao",
name: "水蜜桃",
saveTime: 48,
cost: 2,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "tudou",
name: "土豆",
saveTime: 96,
cost: 1,
transport: 24,
stock: .5,
ice: 0,
count: 0
}, {
id: "jitui",
name: "鸡腿",
saveTime: 48,
cost: 3,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "baiguo",
name: "白果",
saveTime: 48,
cost: 1,
transport: 24,
stock: .5,
ice: 0,
count: 0
}, {
id: "xiangchang",
name: "香肠",
saveTime: 96,
cost: 1,
transport: 24,
stock: 0,
ice: 1,
count: 0
}, {
id: "gongwan",
name: "贡丸",
saveTime: 48,
cost: 1,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "yangrou",
name: "羊肉",
saveTime: 48,
cost: 2,
transport: 24,
stock: 0,
ice: 1,
count: 0
}, {
id: "yatou",
name: "鸭头",
saveTime: 48,
cost: 1,
transport: 24,
stock: 0,
ice: 1,
count: 0
}, {
id: "jizhua",
name: "鸡爪",
saveTime: 48,
cost: 2,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "jipai",
name: "鸡排",
saveTime: 48,
cost: 1,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "mianpi",
name: "面皮",
saveTime: 96,
cost: 1,
transport: 24,
stock: 0,
ice: .2,
count: 0
}, {
id: "jidan",
name: "鸡蛋",
saveTime: 96,
cost: 1,
transport: 24,
stock: 0,
ice: .4,
count: 0
}, {
id: "niurou",
name: "牛肉",
saveTime: 48,
cost: 3,
transport: 24,
stock: 0,
ice: .5,
count: 0
}, {
id: "yazhua",
name: "鸭爪",
saveTime: 96,
cost: 1,
transport: 24,
stock: 0,
ice: .5,
count: 0
} ],
time1: {
min: 1,
hour: 1,
day: 1
},
saleList: []
};
cc._RF.pop();
}, {} ],
gameManeger: [ function(e, t) {
"use strict";
cc._RF.push(t, "b6412TGcQtJu6NoVcDhirK3", "gameManeger");
var i = e("../shop/gameData"), a = i.shopData, o = i.player, n = i.time, s = i.adPosition, c = i.achieveProcess, r = i.times, l = e("./alert"), d = l.show, u = l.msg;
cc.Class({
extends: cc.Component,
properties: {},
restart: function() {
d("未来机器", "请重启游戏，即将退出游戏", function(e) {
if (e) {
cc.sys.localStorage.removeItem("shopList");
cc.sys.localStorage.removeItem("player");
cc.sys.localStorage.removeItem("time");
cc.sys.localStorage.removeItem("adPosition");
cc.sys.localStorage.removeItem("shopName");
cc.sys.localStorage.removeItem("mode");
cc.sys.localStorage.removeItem("achieveProcess");
cc.game.end();
}
});
},
save: function() {
console.log(a);
cc.sys.localStorage.setItem("shopList", JSON.stringify(a));
cc.sys.localStorage.setItem("player", JSON.stringify(o));
cc.sys.localStorage.setItem("time", JSON.stringify(n));
cc.sys.localStorage.setItem("adPosition", JSON.stringify(s));
cc.sys.localStorage.setItem("achieveProcess", JSON.stringify(c));
cc.sys.localStorage.setItem("times", JSON.stringify(r));
cc.log(JSON.parse(cc.sys.localStorage.getItem("shopList")));
d("未来机器", "保存成功");
},
load: function() {
d("未来机器", "请重启游戏，即将退出游戏", function(e) {
e && cc.game.end();
});
},
changeMusic: function() {
cc.find("Audio").getComponent("audio").playBgMusic();
u("音乐开启");
},
stopMusic: function() {
cc.find("Audio").getComponent("audio").stopBgMusic();
u("音乐关闭");
}
});
cc._RF.pop();
}, {
"../shop/gameData": "gameData",
"./alert": "alert"
} ],
gameResources: [ function(e, t) {
"use strict";
cc._RF.push(t, "61119qDa8BKxJpF4fFr6lJo", "gameResources");
var i = [ "food", "foodLock", "market", "menuItem", "shop", "shopStatus", "stockItem", "storeStock", "tipAlert", "toast", "fixShop", "msg", "rank" ], a = {}, o = {
food: [],
foodLock: [],
stockItem: [],
rank: []
};
t.exports = {
prefabArray: i,
PrefabCache: a,
prefabPool: o,
getPrefabPool: function(e) {
var t = o[e].get();
null == t && (t = cc.instantiate(a[e]));
return t;
},
putPrefabPool: function(e, t) {
o[e].put(t);
},
initPrefab: function() {
return new Promise(function(e, t) {
var o = 1;
i.forEach(function(n) {
cc.loader.loadRes("prefab/" + n, function(s, c) {
s && t(s);
o++;
a[n] = c;
if (o > i.length) {
console.log(o);
e(!0);
}
});
});
console.log("预制体");
console.log(a);
});
},
initPrefabPool: function() {
for (var e in o) {
o[e] = new cc.NodePool();
console.log(e);
console.log(a[e]);
for (var t = 0; t < 50; t++) {
var i = cc.instantiate(a[e]);
o[e].put(i);
}
}
console.log(o);
}
};
cc._RF.pop();
}, {} ],
game: [ function(e, t) {
"use strict";
cc._RF.push(t, "8003cCG54hLnJctFE4TpHl4", "game");
var i = e("./ads/video").videoAds, a = (e("../script/game/alert"), e("./ads/ADS").ADS), o = e("./util/gameResources");
o.prefabArray, o.PrefabCache, o.prefabPool, o.initPrefabPool, o.initPrefab;
window.material = {
id: ""
};
cc.Class({
extends: cc.Component,
properties: {
label: {
default: null,
type: cc.Label
},
text: "Hello, World!"
},
start: function() {},
onLoad: function() {
cc.log("初始化了");
a.initAds();
i.init();
cc.debug.setDisplayStats(!1);
window.mode = cc.sys.localStorage.getItem("mode");
},
update: function() {}
});
cc._RF.pop();
}, {
"../script/game/alert": "alert",
"./ads/ADS": "ADS",
"./ads/video": "video",
"./util/gameResources": "gameResources"
} ],
loading: [ function(e, t) {
"use strict";
cc._RF.push(t, "452b8DVQEBGELLqj1XB6Kia", "loading");
var i = e("../shop/gameData").tips;
cc.Class({
extends: cc.Component,
properties: {
tips: cc.Label
},
onEnable: function() {
this.tips.string = "小提示：" + i[parseInt(Math.random() * (i.length - 1))] + "...";
},
start: function() {}
});
cc._RF.pop();
}, {
"../shop/gameData": "gameData"
} ],
marketPanel: [ function(e, t) {
"use strict";
cc._RF.push(t, "bab519eDgpKWqOq6chkfYnA", "marketPanel");
var i = e("../shop/gameData").foodMaterials;
cc.Class({
extends: cc.Component,
properties: {
list: cc.Node,
materialPrefab: cc.Prefab,
stockPanel: cc.Node
},
onLoad: function() {
this.makeList();
},
makeList: function() {
var e = this;
this.list.children && this.list.children.forEach(function(e) {
e.destroy();
});
for (var t = function() {
var t = cc.instantiate(e.materialPrefab);
e.list.addChild(t);
t.getChildByName("name").getComponent(cc.Label).string = "" + i[a].name;
t.getChildByName("price").getComponent(cc.Label).string = 100 * i[a].cost + "元/100份";
t.getChildByName("time").getComponent(cc.Label).string = "配送：" + i[a].transport + "小时";
t.getChildByName("stateTime").getComponent(cc.Label).string = "保质期：" + i[a].saveTime + "小时";
var o = {
space: 1,
type: "binggui"
};
if (0 == i[a].stock) {
o.type = "binggui";
o.space = i[a].ice;
} else {
o.type = "cangku";
o.space = i[a].stock;
}
cc.loader.loadRes("pic/" + o.type + ".png", cc.SpriteFrame, function(e, i) {
t.getChildByName("space").getChildByName("spaceIcon").getComponent(cc.Sprite).spriteFrame = i;
t.getChildByName("space").getComponent(cc.Label).string = "空间：" + 100 * o.space;
});
e.list.height += 100;
t.id = i[a].id;
}, a = 0; a < i.length; a++) t();
cc.log(this.list);
},
start: function() {},
showShopStock: function(e) {
this.stockPanel.active = !0;
cc.log(e.target.id);
window.materialId = e.target.id;
}
});
cc._RF.pop();
}, {
"../shop/gameData": "gameData"
} ],
market: [ function(e, t) {
"use strict";
cc._RF.push(t, "6f6f2jIN7tPfLeQnpoHu0pX", "market");
material.id = 9;
cc.Class({
extends: cc.Component,
properties: {},
showShop: function() {
cc.find("Canvas/show/market/marketAlert").active = !0;
},
start: function() {},
buy: function(e) {
cc.log(e.target.parent.id);
material.id = e.target.parent.id;
material = {
id: e.target.parent.id
};
}
});
cc._RF.pop();
}, {} ],
material: [ function(e, t) {
"use strict";
cc._RF.push(t, "28754a1LuZKkpH9UOc4YXXC", "material");
var i = e("../shop/gameData").shopData;
cc.Class({
extends: cc.Component,
properties: {
shopList: cc.Node,
prefabItem: cc.Prefab
},
onEnable: function() {
this.showList();
},
start: function() {},
showStock: function() {
this.node.active = !this.node.active;
},
showList: function() {
var e = this, t = i.shopList;
this.shopList && this.shopList.children.forEach(function(e) {
e.destroy();
});
t.forEach(function(t) {
if (1 == t.status) {
var i = cc.instantiate(e.prefabItem);
e.shopList.addChild(i);
i.getChildByName("shopName").getComponent(cc.Label).string = "" + t.shopName;
t.stock.length > 0 ? t.stock.forEach(function(e) {
if (e.id == material.id) {
cc.log(e.count);
i.getChildByName("stock").getComponent(cc.Label).string = "库存：" + e.count;
} else i.getChildByName("stock").getComponent(cc.Label).string = "库存：0";
}) : i.getChildByName("stock").getComponent(cc.Label).string = "库存：0";
i.getChildByName("cangku").getComponent(cc.Label).string = "" + t.leftStock;
i.getChildByName("ice").getComponent(cc.Label).string = "" + t.leftIce;
i.id = t.id;
}
e.shopList.height += 42;
});
}
});
cc._RF.pop();
}, {
"../shop/gameData": "gameData"
} ],
menuItem: [ function(e, t) {
"use strict";
cc._RF.push(t, "06de2xv++ZEfJAnjmeGt4LD", "menuItem");
var i = e("../game/alert").show;
e("./gameData").shopData;
cc.Class({
extends: cc.Component,
properties: {
foodName: cc.Label,
price: cc.Label,
stock: cc.Label,
sales: cc.Label,
transport: cc.Label,
buyNum: Number,
buyInput: cc.EditBox,
commonBuy: cc.Button,
agentBuy: cc.Button
},
handler: function() {
var e = this.buyInput.string;
if (typeof parseInt(e) == number) {
var t = e * e;
if (shop.money < t) {
i("未来金融", "您的账户余额不足");
return;
}
return t;
}
},
onEditor: function() {},
buy: function(e) {
var t = this;
shop.menuList.find(function(i) {
i.id == e.target.parent.id && i.transport.push(Object.assign(i, {
count: t.buyNum
}));
});
},
inputEvent: function() {},
fastBuy: function(e) {
var t = this;
shop.menuList.find(function(i) {
i.id == e.target.parent.id && i.transport.push(Object.assign(i, {
count: t.buyNum
}));
});
},
start: function() {},
setMenuState: function() {}
});
cc._RF.pop();
}, {
"../game/alert": "alert",
"./gameData": "gameData"
} ],
menuManeger: [ function(e, t) {
"use strict";
cc._RF.push(t, "9ac77CvOotIvr/IM5upb9eO", "menuManeger");
var i, a = e("../game/alert").show, o = e("./gameData"), n = o.shopData, s = o.player;
cc.Class({
extends: cc.Component,
properties: (i = {
money: cc.Label,
percent: cc.Slider,
count: cc.Integer,
type: cc.String,
shop: cc.Object
}, i.percent = cc.Float, i),
update: function() {
this.money.string = parseInt(this.count * this.percent) + "元";
},
changePanel: function() {
this.node.active = !this.node.active;
this.money.string = this.count;
},
turnIn: function() {
this.count = s.money;
this.type = "in";
},
turnOut: function() {
this.count = this.shop.money;
this.type = "out";
},
ensure: function() {
if ("in" == this.type) if (parseInt(this.count * this.percent) <= s.money) {
s.money -= parseInt(this.count * this.percent);
this.shop.money += parseInt(this.count * this.percent * .9);
} else a("小子", "钱没给够"); else if (parseInt(this.count * this.percent) <= this.shop.money) {
s.money += parseInt(this.count * this.percent * .9);
this.shop.money -= parseInt(this.count * this.percent);
} else a("小子", "钱没给够");
},
onSlider: function(e) {
this.percent = e.progress;
},
onEnable: function() {
this.turnIn();
this.shop = n.shopList.find(function(e) {
return e.id == shopId;
});
this.money.string = 0;
},
makeMenu: function() {}
});
cc._RF.pop();
}, {
"../game/alert": "alert",
"./gameData": "gameData"
} ],
network: [ function(e, t, i) {
"use strict";
cc._RF.push(t, "7268aW3DtNHGIedGy5Z5E9d", "network");
i.__esModule = !0;
i.default = void 0;
var a = new function() {}();
i.default = a;
t.exports = i.default;
cc._RF.pop();
}, {} ],
operation: [ function(e, t) {
"use strict";
cc._RF.push(t, "b63eatjxvJEJZPjgQbZ6yYp", "operation");
var i = e("../shop/gameData"), a = i.player, o = i.shopData, n = i.adPosition, s = e("../game/alert").show, c = (e("../ads/ADS").ADS, 
e("../ads/video").videoAds);
cc.Class({
extends: cc.Component,
properties: {
label: {
default: null,
type: cc.Label
}
},
onLoad: function() {
n.map && (this.node.active = !1);
},
update: function() {},
back: function() {},
loadAd: function() {},
getAds: function() {
var e = this;
s("未来提示", "是否观看广告解锁", function(t) {
t && c.showAd(function(t) {
if (t) {
e.node.active = !1;
n.map = !0;
}
});
});
},
openByMoney: function() {
var e = this, t = o.openMap.openMoney;
if (a.money >= t) {
a.money -= t;
this.node.active = !1;
n.map = !0;
s("董事长提示", "开通成功", function(e) {
cc.log(e);
});
} else s("董事长提示", "金钱不足,是否观看广告开通？", function(t) {
t && c.showAd(function(t) {
if (t) {
e.node.active = !1;
n.map = !0;
}
});
});
},
checkReady: function() {}
});
cc._RF.pop();
}, {
"../ads/ADS": "ADS",
"../ads/video": "video",
"../game/alert": "alert",
"../shop/gameData": "gameData"
} ],
player: [ function(e, t) {
"use strict";
cc._RF.push(t, "ea45bpIkONHJKb9IyhmHuVB", "player");
e("./ads/ADS").ADS;
var i = e("./ads/video").videoAds, a = e("./game/alert"), o = (a.show, a.msg), n = e("./shop/gameData"), s = n.player, c = n.achieveProcess;
cc.Class({
extends: cc.Component,
properties: {
playerName: cc.Label,
money: cc.Label,
joinCount: cc.Label,
selfCount: cc.Label,
income: cc.Label,
storeCount: cc.Label,
addMoney: cc.Sprite
},
onEnable: function() {
this.money.string = "金钱:" + s.money;
this.playerName.string = cc.sys.localStorage.getItem("shopName") || shopName;
},
start: function() {},
addMoneyByAds: function() {
var e = this;
i.showAd(function(t) {
if (t) {
s.money += 1e4;
e.money.string = "金钱：" + s.money;
o("获得融资1w元");
c.ad++;
}
});
},
earn: function() {
s.money += 100;
},
update: function() {
this.money.string = "金钱:" + formatMoney(s.money);
}
});
cc._RF.pop();
}, {
"./ads/ADS": "ADS",
"./ads/video": "video",
"./game/alert": "alert",
"./shop/gameData": "gameData"
} ],
random: [ function(e, t) {
"use strict";
cc._RF.push(t, "9e976uq1oFKs47cyid1gqFS", "random");
function i(e, t) {
var i;
if ("undefined" == typeof Symbol || null == e[Symbol.iterator]) {
if (Array.isArray(e) || (i = a(e)) || t && e && "number" == typeof e.length) {
i && (e = i);
var o = 0;
return function() {
return o >= e.length ? {
done: !0
} : {
done: !1,
value: e[o++]
};
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
return (i = e[Symbol.iterator]()).next.bind(i);
}
function a(e, t) {
if (e) {
if ("string" == typeof e) return o(e, t);
var i = Object.prototype.toString.call(e).slice(8, -1);
"Object" === i && e.constructor && (i = e.constructor.name);
return "Map" === i || "Set" === i ? Array.from(e) : "Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? o(e, t) : void 0;
}
}
function o(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
return a;
}
function n(e, t) {
for (var i = 0; i < t.length; i++) {
var a = t[i];
a.enumerable = a.enumerable || !1;
a.configurable = !0;
"value" in a && (a.writable = !0);
Object.defineProperty(e, a.key, a);
}
}
function s(e, t, i) {
t && n(e.prototype, t);
i && n(e, i);
return e;
}
var c = function() {
function e(e, t, i) {
void 0 === i && (i = new Map());
this.min = Math.trunc(e);
this.max = Math.trunc(t);
this.MATH_RANGE = 100;
this.percentage = i;
}
var t = e.prototype;
t.range = function() {
for (var e = [ 0, this.MATH_RANGE, Array.from(this.percentage.keys()) ], t = e[0], i = e[1], a = e[2], o = 0; o < a.length; o++) {
var n = this.percentage.get(a[o]);
this.percentage.set(a[o], [ t, t += n * i ]);
}
};
t.create = function() {
for (var e, t = Math.random() * this.MATH_RANGE, a = i(this.percentage.entries()); !(e = a()).done; ) {
var o = e.value;
if (t >= o[1][0] && t < o[1][1]) return o[0];
}
return null;
};
s(e, [ {
key: "percentage",
get: function() {
this._percentage || (this._percentage = new Map());
return this._percentage;
},
set: function(e) {
for (var t = Array.from(e.values()).reduce(function(e, t) {
return e - t;
}, 1), i = this.min; i < this.max; i++) e.has(i) ? this.percentage.set(i, e.get(i)) : this.percentage.set(i, t / (this.max - this.min - e.size));
}
} ]);
return e;
}();
t.exports.GLRandom = c;
cc._RF.pop();
}, {} ],
rank: [ function(e, t) {
"use strict";
cc._RF.push(t, "c5f93Np1DZBUrmQLbfUZOpq", "rank");
var i = e("../ads/video").videoAds, a = e("../game/alert"), o = a.show, n = a.msg, s = e("../shop/gameData"), c = s.player, r = s.shopData, l = s.time, d = e("../util/gameResources"), u = (d.prefabArray, 
d.PrefabCache, d.getPrefabPool);
d.putPrefabPool;
cc.Class({
extends: cc.Component,
properties: {
shopList: cc.Node,
tmpPrefab: cc.Prefab,
myRank: cc.Node
},
onLoad: function() {
this.app = cc.cloud && cc.cloud.initialize();
this.auth = this.app.auth();
cc.log(c);
cc.log(r);
cc.log(l);
},
calMyData: function() {
var e = 0, t = 0;
r.shopList.forEach(function(i) {
e += i.money;
0 != i.status && t++;
});
e += c.money;
this.rankInfo = {
money: e,
name: cc.sys.localStorage.getItem("shopName"),
time: l.day,
count: t
};
this.setMyRank();
},
upRank: function() {
var e = this;
c.money < 1e5 ? n("10w都没有还富豪？") : c.money < 1e4 ? o("广告商赞助", "是否让广告商赞助,需要1w元参与富豪榜", function() {
i.showAd(function(t) {
if (t) {
cc.log(t);
e.app.callFunction({
name: "rank",
data: {
action: "upRank",
params: e.rankInfo
}
}).then(function(t) {
console.log("function", t);
e.shopList.children.forEach(function(t) {
t.destroy();
e.shopList.height -= 105;
});
e.updateShop(t.result.data);
}).catch(console.error);
}
});
}) : o("未来富豪榜", "参与福步撕富豪榜需要支付1w元,确认吗？", function(t) {
if (t) {
c.money -= 1e4;
e.app.callFunction({
name: "rank",
data: {
action: "upRank",
params: e.rankInfo
}
}).then(function(t) {
console.log("function", t);
e.shopList.children.forEach(function(t) {
t.destroy();
e.shopList.height -= 105;
});
e.updateShop(t.result.data);
}).catch(console.error);
}
});
},
updateShop: function(e) {
var t = this, i = cc.sys.localStorage.getItem("shopName");
e.forEach(function(e, a) {
if (e.name == i) {
t.myData = e;
t.myData.rank = a + 1;
}
var o = u("rank");
t.shopList.addChild(o);
o.getChildByName("index").getComponent(cc.Label).string = "" + (a + 1);
o.getChildByName("money").getComponent(cc.Label).string = formatMoney(e.money) + "元";
o.getChildByName("name").getComponent(cc.Label).string = "" + e.name;
o.getChildByName("time").getComponent(cc.Label).string = e.time + "天";
o.getChildByName("count").getComponent(cc.Label).string = e.count + "家";
t.shopList.height += 105;
});
this.setMyRank();
},
setMyRank: function() {
var e = this.myRank, t = {};
this.myData && this.myData.count ? t = this.myData : (t = this.rankInfo).rank = "未上榜";
e.getChildByName("index").getComponent(cc.Label).string = "" + t.rank;
e.getChildByName("money").getComponent(cc.Label).string = formatMoney(t.money) + "元";
e.getChildByName("name").getComponent(cc.Label).string = "" + t.name;
e.getChildByName("time").getComponent(cc.Label).string = t.time + "天";
e.getChildByName("count").getComponent(cc.Label).string = t.count + "家";
},
onEnable: function() {
this.calMyData();
this.callCloudFunction();
},
onDisable: function() {
var e = this;
this.shopList.children.forEach(function(t) {
t.destroy();
e.shopList.height -= 105;
});
},
callCloudFunction: function() {
var e = this;
this.auth.anonymousAuthProvider().signIn().then(function() {
console.log("TCB inited");
e.app.callFunction({
name: "rank",
data: {
action: "money"
}
}).then(function(t) {
console.log("function", t);
e.updateShop(t.result.data);
}).catch(console.error);
});
}
});
cc._RF.pop();
}, {
"../ads/video": "video",
"../game/alert": "alert",
"../shop/gameData": "gameData",
"../util/gameResources": "gameResources"
} ],
saleManager: [ function(e, t) {
"use strict";
cc._RF.push(t, "b10ecL/r+tO1JDUAaG8fO2F", "saleManager");
e("./gameData").shopData;
cc.Class({
extends: cc.Component,
properties: {
menuList: cc.RichText,
shop: cc.Object
},
update: function() {
this.showList();
},
onEnable: function() {
this.showList();
this.schedule(this.showList, 1e3);
},
onDisable: function() {
this.unschedule(this.showList);
},
updateSaleList: function() {
this.showList();
},
showStockPanel: function() {
this.node.active = !this.node.active;
},
showList: function() {
this.menuList.string = " ";
var e = "";
shop.saleList.length >= 13 && shop.saleList.splice(0, shop.saleList.length - 13);
shop.saleList.forEach(function(t) {
e += t + "<br/>";
});
this.menuList.string = e;
},
clearFood: function(e) {
var t = this.shop.stock.map(function(t) {
return t.id == e.target.parent.id;
});
t.sort(function(e, t) {
return e.saveTime - t.saveTime;
});
t.splice(0, 1);
}
});
cc._RF.pop();
}, {
"./gameData": "gameData"
} ],
shopBank: [ function(e, t) {
"use strict";
cc._RF.push(t, "68b767o0xlO+ZGj055240pW", "shopBank");
var i = e("../../game/alert").show;
e("../gameData").shopData;
cc.Class({
extends: cc.Component,
properties: {
oneMonth: cc.Button,
threeMonth: cc.Button,
sixMonth: cc.Button,
monthLabel: cc.Label,
moneyPercent: cc.Slider,
monthTips: cc.Label,
moneyTips: cc.Label,
payMoney: cc.Button,
rentMoney: cc.Button,
curMoney: 1e3,
money: 1e4,
interest: 0
},
onEnable: function() {
if (shop.debt.money > 0) {
this.oneMonth.interactable = !1;
this.threeMonth.interactable = !1;
this.sixMonth.interactable = !1;
this.money = shop.debt.money;
this.monthLabel.string = shop.debt.month + "个月";
this.monthTips.string = shop.debt.month + "个月后偿还本金，每个月利息" + formatMoney(shop.debt.interest);
this.moneyPercent.process = 0;
this.moneyTips.string = formatMoney(0) + "元 / " + formatMoney(shop.debt.money) + "元";
} else {
this.money = (shop.startMoney + 10 * shop.income) * (Math.ceil(parseInt(1) / 3) % 3);
this.month = 1;
this.monthLabel.string = "1个月";
this.monthTips.string = "1个月后偿还本金，每个月利息??";
this.moneyPercent.process = 0;
this.moneyTips.string = formatMoney(0) + "元 / " + formatMoney(this.money) + "元";
this.payMoney.interactable = !1;
}
},
changeActive: function() {
this.node.active = !this.node.active;
},
onSlider: function(e) {
var t = e.progress;
this.percent = t;
if (shop.debt.money > 0) {
this.monthTips.string = "请先还清贷款";
this.moneyTips.string = formatMoney(shop.debt.money * t) + "元 / " + formatMoney(shop.debt.money) + "元";
} else {
this.curMoney = t * this.money;
this.moneyTips.string = formatMoney(this.curMoney) + "元 / " + formatMoney(this.money) + "元";
this.monthTips.string = this.monthLabel.string + "个月后偿还本金，每个月利息" + formatMoney(this.interest * this.curMoney / 100);
}
},
changeMonth: function(e, t) {
this.money = (shop.startMoney + 10 * shop.income) * (Math.ceil(parseInt(t) / 3) % 3);
console.log(this.money);
this.monthLabel.string = t + "个月";
this.month = t;
this.interest = 6 == t ? 18 : 24 - 2 * (t - 1);
this.monthTips.string = t + "个月后偿还本金，每个月利利率" + this.interest + "%";
this.moneyTips.string = formatMoney(this.curMoney) + "元 / " + formatMoney(this.money) + "元";
},
ensureRent: function() {
shop.debt = {
money: this.curMoney,
interest: this.interest * this.curMoney / 100,
month: this.month,
rate: this.interest
};
console.log(this.rentMoney);
this.rentMoney.interactable = !1;
this.oneMonth.interactable = !1;
this.threeMonth.interactable = !1;
this.payMoney.interactable = !0;
this.sixMonth.interactable = !1;
this.moneyTips.string = formatMoney(this.curMoney * this.moneyPercent.progress) + "元 / " + formatMoney(this.curMoney) + "元";
shop.money += this.curMoney;
console.log(shop.money);
i("未来银行", "借款成功");
},
payDebt: function() {
if (shop.money >= shop.debt.money * this.percent) {
shop.money -= shop.debt.money * this.percent;
shop.debt.money -= shop.debt.money * this.percent;
shop.debt.interest -= this.interest * shop.debt.money / 100;
if (shop.debt.money > 0) {
i("未来银行", "部分还款成功");
return;
}
this.payMoney.interactable = !1;
this.rentMoney.interactable = !0;
this.oneMonth.interactable = !0;
this.threeMonth.interactable = !0;
this.sixMonth.interactable = !0;
shop.debt = {
money: 0,
interset: 0,
month: 0,
rate: 0
};
i("未来银行", "贷款还清啦");
} else i("未来银行", "余额不足");
}
});
cc._RF.pop();
}, {
"../../game/alert": "alert",
"../gameData": "gameData"
} ],
shopDetail: [ function(e, t) {
"use strict";
cc._RF.push(t, "9cd46I+i8BCsJQD6ihgE31S", "shopDetail");
var i = e("../game/alert"), a = i.show, o = i.msg, n = e("../util/EventServices"), s = e("./gameData"), c = s.shopData, r = (s.foodMaterials, 
s.foodList, s.time), l = e("../util/gameResources"), d = (l.prefabArray, l.PrefabCache), u = (l.prefabPool, 
l.putPrefabPool, l.getPrefabPool), h = e("../ads/video").videoAds;
cc.Class({
extends: cc.Component,
properties: {
shopName: cc.Label,
workers: cc.Label,
customer: cc.Label,
income: cc.Label,
money: cc.Label,
koubei: cc.Label,
weatherImg: cc.Sprite,
weather: cc.Label,
famous: cc.Label,
foodList: cc.Node,
unlockList: cc.Node,
foodPrefab: cc.Prefab,
_curLoadIdx: 0,
loadingFinish: !1
},
onEnable: function() {
var e = this;
console.log("显示了");
cc.log(c);
window.shop = c.shopList.find(function(e) {
return e.id == shopId;
});
this.scheduleOnce(function() {
shop.famous <= 10 && o("店铺知名度有点低，建议多宣传宣传");
}, 3);
if (1 == shop.status) this.initShop(); else {
n.subscribe("fixShop", function() {
e.initShop();
});
cc.instantiate(d.fixShop).parent = this.node;
}
},
initShop: function() {
var e = this;
this.setData(shop);
n.subscribe("shopUpdate", function(t, i) {
console.log("收到消息");
if (shop.foodList && shop.foodList.length > 0) {
e.foodList.children[i].getChildByName("sales").getComponent(cc.Label).string = "销量:" + formatMoney(shop.foodList[i].sales);
e.foodList.children[i].getChildByName("famous").getComponent(cc.Label).string = "库存:" + formatMoney(shop.foodList[i].stock);
}
});
n.subscribe("unlockFood", function(t, i) {
var a = u("food");
e.foodList.addChild(a);
a.getChildByName("foodName").getComponent(cc.Label).string = "" + t.name;
a.getChildByName("sales").getComponent(cc.Label).string = "销量:" + formatMoney(t.sales);
a.getChildByName("price").getComponent(cc.Label).string = "价格:" + formatMoney(t.price);
a.getChildByName("famous").getComponent(cc.Label).string = "库存:" + formatMoney(t.stock);
a.getChildByName("level").getComponent(cc.Label).string = t.level + "级";
a.getChildByName("levelCost").getComponent(cc.Label).string = "下级:" + formatMoney(t.levelCost);
a.id = t.id;
shop.foodList[i].state = 1;
e.foodList.height += 110;
});
n.subscribe("transportOver", function(t, i) {
shop.foodList && shop.foodList.length > 0 && (e.foodList.children[t].getChildByName("famous").getComponent(cc.Label).string = "库存:" + i);
});
n.subscribe("addFamous", function(e) {
shop.famous += e;
});
this.loadingFinish = !1;
this._curLoadIdx = 0;
},
update: function() {
this.loadingFinish || 1 != shop.status || this.executePreFrame();
if (1 == shop.status) {
this.workers.string = "员工：" + formatMoney(shop.workers) + "/" + formatMoney(shop.freeWork) + "人";
this.income.string = "收入：" + formatMoney(shop.income) + "元";
this.customer.string = "顾客：" + shop.customer + "/" + shop.customerList.length + "人";
this.money.string = "资产：" + formatMoney(shop.money) + "元";
this.koubei.string = "支出：" + formatMoney(shop.rent / 30) + "元";
this.famous.string = "知名度：" + formatMoney(shop.famous > 1e4 ? 1e4 : shop.famous);
}
},
addWorkers: function() {
if (shop.money >= 1e4) {
shop.money -= 1e4;
shop.workers++;
shop.freeWork++;
shop.rent += 8e3;
a("未来公司", "花费了10000元开展招聘会,每个月的支出+8000");
} else a("劳务派遣", "是否委托劳务公司招聘", function(e) {
e && h.showAd(function(e) {
if (e) {
shop.workers++;
shop.freeWork++;
shop.rent += 8e3;
o("成功派遣");
}
});
});
},
reduceWorkers: function() {
if (shop.freeWork <= 0) o("员工正忙，没空搭理你"); else if (r.day % 30 != 1) a("劳务公司", "是否需要免费解约(合同未到期，每个月一号结算),现在解雇需要支付5000块违约金", function(e) {
if (e) h.showAd(function(e) {
if (e) {
o("已成功帮你和解员工纠纷");
shop.workers--;
shop.freeWork--;
shop.rent -= 8e3;
}
}); else {
shop.money -= 5e3;
shop.workers--;
shop.freeWork--;
shop.rent -= 8e3;
}
}); else {
o("解雇员工", "解雇成功");
shop.workers--;
shop.freeWork--;
shop.rent -= 8e3;
}
},
onDisable: function() {
this.unscheduleAllCallbacks();
this.foodList.destroyAllChildren();
this.unlockList.destroyAllChildren();
this.foodList.height = 10;
this.unlockList.height = 10;
n.unSubscribe("shopUpdate");
n.unSubscribe("unlockFood");
n.unSubscribe("transportOver");
n.unSubscribe("addFamous");
},
showSalePanel: function() {
this.node.getChildByName("menuList").active = !this.node.getChildByName("menuList").active;
},
setData: function(e) {
this.shopName.string = e.shopName;
this.workers.string = "员工：" + e.workers + "/" + e.freeWork + "人";
this.income.string = "收入：" + formatMoney(e.income) + "元";
this.customer.string = "顾客：" + e.customer + "/" + e.customerList.length + "人";
this.money.string = "资产：" + formatMoney(e.money) + "元";
this.koubei.string = "支出：" + (e.rent + 1e4) + "元";
this.famous.string = "知名度：" + formatMoney(e.famous);
var t = this;
cc.loader.loadRes("pic/weather/" + e.weather.weatherId + ".png", cc.SpriteFrame, function(e, i) {
t.weatherImg.spriteFrame = i;
});
this.weather.string = e.weather.weatherName;
o("今天天气是" + e.weather.weatherName + "生意可能会受影响噢");
},
setFoodList: function() {
var e = this;
console.log("我是严词生成的");
console.log(this);
shop.menuList.forEach(function(t) {
if (1 == t.state) {
var i = u("food");
e.foodList.addChild(i);
i.getChildByName("foodName").getComponent(cc.Label).string = "" + t.name;
i.getChildByName("sales").getComponent(cc.Label).string = "销量:" + formatMoney(t.sales);
i.getChildByName("price").getComponent(cc.Label).string = "价格:" + formatMoney(t.price);
i.getChildByName("famous").getComponent(cc.Label).string = "库存:" + formatMoney(t.stock);
i.id = t.id;
} else {
var a = u("foodLock");
e.unlockList.addChild(a);
a.getChildByName("price").getComponent(cc.Label).string = "知名度：" + t.unlockFamous + "  花费：" + t.unlockMoney;
}
});
},
addItem: function(e) {
var t = shop.menuList[e];
if (1 == t.state) {
var i = u("food");
this.foodList.addChild(i);
i.getChildByName("foodName").getComponent(cc.Label).string = "" + t.name;
i.getChildByName("sales").getComponent(cc.Label).string = "销量:" + formatMoney(t.sales);
i.getChildByName("price").getComponent(cc.Label).string = "价格:" + formatMoney(t.price);
i.getChildByName("famous").getComponent(cc.Label).string = "库存:" + formatMoney(t.stock);
i.getChildByName("level").getComponent(cc.Label).string = t.level + "级";
i.getChildByName("levelCost").getComponent(cc.Label).string = "下级:" + formatMoney(t.levelCost);
i.id = t.id;
this.foodList.height += 110;
this.foodList.parent.height += 110;
} else {
var a = u("foodLock");
this.unlockList.addChild(a);
a.getChildByName("price").getComponent(cc.Label).string = "知名度：" + t.unlockFamous + "  花费：" + t.unlockMoney;
a.id = t.id;
this.unlockList.height += 110;
this.unlockList.parent.height += 110;
}
},
executePreFrame: function() {
for (var e = 0; e <= 10; ) {
e++;
this.addItem(this._curLoadIdx);
this._curLoadIdx++;
if (this._curLoadIdx >= shop.menuList.length) {
this.loadingFinish = !0;
return;
}
}
}
});
cc._RF.pop();
}, {
"../ads/video": "video",
"../game/alert": "alert",
"../util/EventServices": "EventServices",
"../util/gameResources": "gameResources",
"./gameData": "gameData"
} ],
shopFix: [ function(e, t) {
"use strict";
cc._RF.push(t, "a19340FAPlHprI9HxLx+X1u", "shopFix");
var i = e("../gameData"), a = i.player, o = i.foodList, n = e("../../util/EventServices"), s = e("../../game/alert").show;
cc.Class({
extends: cc.Component,
properties: {},
onLoad: function() {
var e = this;
this.addEvent();
this.node.getChildByName("close").on(cc.Node.EventType.TOUCH_END, function() {
e.node.destroy();
e.node.parent.active = !1;
cc.find("Canvas/show/showShop").active = !0;
});
},
addEvent: function() {
var e = this, t = this.node.getChildByName("panel").children;
(t = t.slice(0, 3)).forEach(function(t, i) {
t.on(cc.Node.EventType.TOUCH_END, function() {
2 == i ? e.selectFix(50, i + 1) : e.selectFix(10 * (i + 1), i + 1);
});
});
},
selectFix: function(e, t) {
console.log(1e4 * e);
if (a.money >= 1e4 * e) {
a.money -= 1e4 * e;
shop.status = 1;
shop.level = t;
shop.menuList = JSON.parse(JSON.stringify(o[t - 1].list));
n.publish("fixShop");
this.node.destroy();
} else s("未来银行", "账户余额不足，请充值");
},
start: function() {}
});
cc._RF.pop();
}, {
"../../game/alert": "alert",
"../../util/EventServices": "EventServices",
"../gameData": "gameData"
} ],
shopManager: [ function(e, t) {
"use strict";
cc._RF.push(t, "02a267WEbFGw6o08CHOKtv/", "shopManager");
var i = e("../../game/alert").show, a = e("../../util/EventServices"), o = e("../gameData"), n = o.shopData, s = o.player;
cc.Class({
extends: cc.Component,
properties: {
sliderMoney: cc.Slider,
sliderAds: cc.Slider,
addMoney: cc.Label,
addFamous: cc.Label,
moneyTips: cc.Label,
turnStock: 0,
turnMoney: 0,
cost: 0,
famous: 0,
allMoney: s.money,
sliderTurnMoney: cc.Slider
},
ensureAddMoney: function() {
if (this.turnProcess >= 1) i("未来金融", "无法转让公司噢？are you kiding me"); else if (this.turnProcess <= 0 || Math.floor(this.turnStock) <= 1) i("未来金融", "别瞎gao"); else {
shop.money += this.turnMoney;
shop.leftStock -= this.turnStock;
this.sliderMoney.progress = 0;
i("未来投资公司", "转让" + formatMoney(this.turnStock) + "股份，获取融资" + formatMoney(this.turnMoney));
this.turnMoney = 0;
this.turnProcess = 0;
this.addMoney.string = "0% / 0元";
this.turnStock = 0;
}
},
ensureAddFamous: function() {
if (shop.money < this.cost) i("未来金融", "钱攒够再来吧，小子"); else if (0 != this.cost) {
shop.money -= this.cost;
this.sliderAds.progress = 0;
this.addFamous.string = 0;
this.cost = 0;
i("未来金融", "恭喜，收获" + formatMoney(this.famous) + "的知名度,尝试运营店铺再来效果更好噢");
a.publish("addFamous", this.famous);
}
},
onSliderStock: function(e) {
console.log(e.progress, shop.leftStock);
this.turnProcess = e.progress;
this.turnStock = (this.turnProcess * shop.leftStock).toFixed(1);
this.turnMoney = shop.income * (1 + shop.famous % 25 / 100) * this.turnStock + .1 * shop.startMoney;
this.addMoney.string = formatMoney(this.turnStock) + "% / " + formatMoney(this.turnMoney) + "元";
},
onSliderFamous: function(e) {
console.log(e.progress);
this.cost = e.progress * shop.money;
this.famous = parseInt(Math.random() * shop.loaction + this.cost / 200 + shop.famous / 50);
this.famous >= 1e4 && (this.famous = 1e4);
this.addFamous.string = formatMoney(this.cost);
},
close: function() {
this.node.active = !this.node.active;
},
onSliderTurnMoney: function(e) {
this.turnMoneyProcess = e.progress;
this.turnCount = this.turnMoneyProcess * this.allMoney;
this.moneyTips.string = formatMoney(this.turnCount);
},
changeTurnMode: function(e, t) {
this.turnMode = t;
this.allMoney = 1 == t ? s.money : shop.money;
this.sliderTurnMoney.progress = 0;
this.moneyTips.string = "最高" + formatMoney(this.allMoney);
},
ensureTurnMoney: function() {
if (this.turnMode) if (this.turnCount <= 0) i("未来银行", "弄啥类，提多少钱"); else {
if (1 == this.turnMode) {
shop.money += .9 * this.turnCount;
s.money -= .9 * this.turnCount;
this.allMoney = s.money;
i("未来金融", "操作成功，扣除10%的手续费和服务费");
} else {
shop.money -= .9 * this.turnCount;
s.money += .9 * this.turnCount;
this.allMoney = shop.money;
i("未来金融", "操作成功，扣除10%的手续费和服务费");
}
this.moneyTips.string = "最高" + formatMoney(this.allMoney);
this.turnCount = 0;
this.sliderTurnMoney.progress = 0;
} else i("未来银行", "弄啥类，请选择您要的服务");
},
start: function() {
shop = n.shopList.find(function(e) {
return e.id == shopId;
});
console.log(shop);
}
});
cc._RF.pop();
}, {
"../../game/alert": "alert",
"../../util/EventServices": "EventServices",
"../gameData": "gameData"
} ],
shopShow: [ function(e, t) {
"use strict";
cc._RF.push(t, "5cdc9LQ+f1LUY3Jnxvu3qM+", "shopShow");
var i = e("./gameData"), a = i.shopData, o = i.times, n = e("../util/EventServices");
cc.Class({
extends: cc.Component,
properties: {
shopList: cc.Node,
tmpPrefab: cc.Prefab,
tmpTime: 0
},
update: function(e) {
this.tmpTime += e;
this.tmpTime >= 2 && this.updateShop();
},
onLoad: function() {
var e = new Date(), t = e.getMonth() + 1, i = e.getDate();
if (i != o.lastTime.day) {
o.lastTime.month = t;
o.lastTime.day = i;
o.count = 4;
} else if (t != o.lastTime.month) {
o.lastTime.month = t;
o.lastTime.day = i;
o.count = 4;
}
n.subscribe("shopUpdate", function(e, t) {
console.log("收到消息");
a.shopList[e].foodList[t].sales++;
a.shopList[e].foodList[t].stock--;
});
},
onEnable: function() {
this.loadShop();
cc.log("店铺列表");
cc.log(a);
cc.log(JSON.parse(cc.sys.localStorage.getItem("shopList")));
},
loadShop: function() {
var e = a.shopList;
this.shopList.children.forEach(function(e) {
e.destroy();
});
for (var t = 0; t < e.length; t++) if (1 == e[t].status || 2 == e[t].status) {
var i = cc.instantiate(this.tmpPrefab);
this.shopList.addChild(i);
i.getChildByName("shopName").getComponent(cc.Label).string = "" + e[t].shopName;
i.getChildByName("workers").getComponent(cc.Label).string = "员工：" + e[t].workers;
i.getChildByName("income").getComponent(cc.Label).string = "收入：" + e[t].income;
i.getChildByName("status").getComponent(cc.Label).string = "状态：" + (1 == e[t].status ? "营业中" : "待装修");
i.getChildByName("money").getComponent(cc.Label).string = "账户：" + e[t].money;
i.getChildByName("customer").getComponent(cc.Label).string = "顾客：" + e[t].customer;
i.id = "" + e[t].id;
}
},
updateShop: function() {
var e = this, t = a.shopList, i = 0;
t.forEach(function(t) {
if (1 == t.status || 2 == t.status) {
var a = e.shopList.children[i];
a.getChildByName("customer").getComponent(cc.Label).string = "顾客：" + t.customer;
a.getChildByName("workers").getComponent(cc.Label).string = "员工：" + t.workers;
a.getChildByName("income").getComponent(cc.Label).string = "收入：" + getOmitNum(t.income, 2);
a.getChildByName("money").getComponent(cc.Label).string = "账户：" + getOmitNum(t.money, 2);
i++;
}
});
},
addShop: function() {}
});
cc._RF.pop();
}, {
"../util/EventServices": "EventServices",
"./gameData": "gameData"
} ],
shop: [ function(e, t) {
"use strict";
cc._RF.push(t, "da5445A1/RJS5kZZdpn8A7L", "shop");
cc.Class({
extends: cc.Component,
properties: {
shopName: cc.Label,
workers: cc.Label,
income: cc.Label,
status: cc.Label,
money: cc.Label,
customer: cc.Label,
id: cc.String
},
start: function() {},
toDetail: function(e) {
var t = cc.find("Canvas/show").getComponent("tabshow");
cc.log(e.target);
window.shopId = e.target.id;
t.changeTab(null, "shopDetail");
}
});
cc._RF.pop();
}, {} ],
startScene: [ function(e, t) {
"use strict";
cc._RF.push(t, "e1dfe198b5Bp4nGfJS+bW5t", "startScene");
e("../ads/ADS").ADS;
cc.Class({
extends: cc.Component,
properties: {
oneMonthBtn: cc.Button,
threeMonthBtn: cc.Button,
sixMonthBtn: cc.Button,
shopName: cc.Label
},
onLoad: function() {
cc.debug.setDisplayStats(!1);
this.shopName.string = cc.sys.localStorage.getItem("shopName") || shopName;
},
start: function() {},
selectMode: function(e, t) {
window.mode = t;
cc.sys.localStorage.setItem("mode", t);
cc.director.loadScene("home");
},
enterRank: function() {
cc.director.loadScene("rank");
}
});
cc._RF.pop();
}, {
"../ads/ADS": "ADS"
} ],
stockItem: [ function(e, t) {
"use strict";
cc._RF.push(t, "2cf2607fBJGj7S1ak2A+7jn", "stockItem");
var i = e("../game/alert").show;
e("./gameData").shopData;
cc.Class({
extends: cc.Component,
properties: {
foodName: cc.Label,
stock: cc.Label,
sales: cc.Label,
transport: cc.Label,
price: cc.Label,
buyNum: cc.EditBox
},
start: function() {},
buyCommon: function(e, t) {
(!this.buyNum.string || parseInt(this.buyNum.string) <= 0) && (this.buyNum.string = 100);
var a = e.target.parent.cost * parseInt(this.buyNum.string) * t * .2;
if (a <= shop.money) {
shop.money -= a;
var o = e.target.parent.id, n = shop.foodList.find(function(e) {
return e.id == o;
}), s = {
transport: 60 * n.level / t,
stock: parseInt(this.buyNum.string),
id: n.id,
name: n.name
};
shop.transportList.push(s);
i("未来批发", "货车司机已出发，请耐心等待配送");
} else i("未来金融", "公司账户余额不足");
}
});
cc._RF.pop();
}, {
"../game/alert": "alert",
"./gameData": "gameData"
} ],
stockManager: [ function(e, t) {
"use strict";
cc._RF.push(t, "8d2eb/qaG9D5YyNx++V2bAu", "stockManager");
var i = e("../../ads/video").videoAds, a = e("../../game/alert").show, o = e("../../util/gameResources"), n = (o.PrefabCache, 
o.prefabPool, o.getPrefabPool), s = e("../gameData"), c = (s.shopData, s.player, 
s.adPosition);
cc.Class({
extends: cc.Component,
properties: {
menuList: cc.Node,
count: cc.EditBox
},
onEnable: function() {
var e = this;
shop.menuList.forEach(function(t) {
if (1 == t.state) {
var i = n("stockItem");
e.menuList.addChild(i);
i.getChildByName("foodName").getComponent(cc.Label).string = "" + t.name;
i.getChildByName("sales").getComponent(cc.Label).string = "销量：" + formatMoney(t.sales);
i.getChildByName("transport").getComponent(cc.Label).string = "配送：" + formatMoney(t.transport);
i.getChildByName("price").getComponent(cc.Label).string = "价格：" + formatMoney(.2 * t.price);
i.getChildByName("stock").getComponent(cc.Label).string = "库存:" + formatMoney(t.stock);
i.id = t.id;
i.cost = t.price <= 0 ? 1 : t.price;
e.menuList.height += 122;
}
});
},
onDisable: function() {
this.menuList.destroyAllChildren();
this.menuList.height = 0;
},
start: function() {},
buyAll: function() {
if (c.oneKey) {
var e = parseInt(this.count.string);
(!e || e <= 0) && (e = 100);
var t = 0;
shop.foodList.forEach(function(i) {
t += .2 * i.price * e;
});
if (shop.money < t) a("未来批发", "金钱不足"); else {
shop.money -= t;
shop.foodList.forEach(function(t) {
shop.transportList.push({
id: t.id,
name: t.name,
stock: e,
transport: 60 * t.level
});
});
a("未来批发", "货物已开始配送");
}
} else a("未来广告", "是否观看广告解锁", function(e) {
e && i.showAd(function(e) {
e && (c.oneKey = !0);
});
});
},
changeActive: function() {
this.node.active = !this.node.active;
}
});
cc._RF.pop();
}, {
"../../ads/video": "video",
"../../game/alert": "alert",
"../../util/gameResources": "gameResources",
"../gameData": "gameData"
} ],
support: [ function(e, t) {
"use strict";
cc._RF.push(t, "7590f985t5GbpUbMoazLBZz", "support");
var i = e("./ads/video").videoAds, a = e("./game/alert").show, o = e("./ListView/ListViewAdapter").ListViewAdapter, n = e("./shop/gameData"), s = n.achieveList, c = n.achieveProcess, r = n.player, l = n.shopData;
cc.Class({
extends: cc.Component,
properties: {
list: o
},
onLoad: function() {},
onEnable: function() {
c.money = r.money;
var e = 0;
l.shopList.forEach(function(t) {
1 == t.status && e++;
});
c.shop = e - 1 < 0 ? 0 : e - 1;
this.list.updateItems(s);
},
loadAds: function() {
i.showAd(function(e) {
e && a("未来人生工作室", "感谢支持");
});
}
});
cc._RF.pop();
}, {
"./ListView/ListViewAdapter": "ListViewAdapter",
"./ads/video": "video",
"./game/alert": "alert",
"./shop/gameData": "gameData"
} ],
tabshow: [ function(e, t) {
"use strict";
cc._RF.push(t, "67167xdfl5K9KWNjhozsxxW", "tabshow");
cc.Class({
extends: cc.Component,
properties: {
shopList: cc.Node,
map: cc.Node,
market: cc.Node,
sitting: cc.Node,
support: cc.Node,
shopDetail: cc.Node,
loading: cc.Node
},
start: function() {},
changeTab: function(e, t) {
var i = this;
this.loading.active = !0;
this.scheduleOnce(function() {
i.loading.active = !1;
}, .5);
this.shopList.active = !1;
this.map.active = !1;
this.market.active = !1;
this.sitting.active = !1;
this.support.active = !1;
this.shopDetail.active = !1;
this[t].active = !0;
}
});
cc._RF.pop();
}, {} ],
timer: [ function(e, t) {
"use strict";
cc._RF.push(t, "004e9y9RUZOYqPT4KSS5lIg", "timer");
var i = e("./alert"), a = i.show, o = i.msg, n = e("../shop/gameData"), s = n.adPosition, c = n.shopData, r = n.weatherList, l = n.foodList, d = n.customerList, u = n.time, h = n.player, p = n.achieveProcess, m = n.times, g = e("./gameInitData"), f = g.player1, v = g.adPosition1, b = (g.shopData1, 
g.time1), A = (e("../ads/ADS").ADS, e("../util/random").GLRandom), S = e("../util/EventServices"), y = e("../ads/video").videoAds;
new A(1, 4);
cc.Class({
extends: cc.Component,
properties: {
day: cc.Label,
hour: cc.Label,
min: cc.Label,
speed: .5,
shopList: cc.Node,
shopBanner: cc.RichText
},
onLoad: function() {
cc.log("timer初始化游戏数据了");
this.randomWeather();
this.randomMenuList();
this.initShopStock();
this.schedule(this.updateTime, this.speed);
},
init: function() {
var e = cc.sys.localStorage.getItem("player");
cc.log(cc.sys.localStorage.getItem("player"));
if (e) {
h = JSON.parse(e);
console.log(h);
s = JSON.parse(cc.sys.localStorage.getItem("adPosition"));
u = JSON.parse(cc.sys.localStorage.getItem("time"));
} else {
h = JSON.parse(JSON.stringify(f));
u = JSON.parse(JSON.stringify(b));
s = JSON.parse(JSON.stringify(v));
}
},
update: function() {
this.randerTime();
},
randerTime: function() {
this.day.string = u.day;
this.hour.string = u.hour;
u.hour < 10 ? this.hour.string = "0" + u.hour : this.hour.string = u.hour;
u.min < 10 ? this.min.string = "0" + u.min : this.min.string = u.min;
},
calMoney: function() {
var e = 0;
e += h.money;
c.shopList.forEach(function(t) {
e += t.money;
e -= t.debt.money + t.debt.interest * t.debt.month;
});
return e;
},
updateTime: function() {
u.min += 1;
this.refreshOrders();
if (u.min % 10 == 0) {
this.calTransport();
this.calshopCustomer(parseInt(u.hour));
}
if (u.min >= 60) {
u.min = 0;
u.hour += 1;
if (u.hour >= 24) {
Math.random() >= .3 && m.count > 0 && a("未来投资", "公司需要投资吗？,我钱太多了", function(e) {
e && y.showAd(function(e) {
if (e) {
o("获取融资2w元");
h.money += 2e4;
p.ad++;
}
});
});
this.scheduleOnce(function() {
o("店铺打烊了");
}, 5);
this.randomWeather();
this.clearShopDay();
u.hour = 0;
u.day += 1;
cc.sys.localStorage.setItem("shopList", JSON.stringify(c));
cc.sys.localStorage.setItem("player", JSON.stringify(h));
cc.sys.localStorage.setItem("time", JSON.stringify(u));
cc.sys.localStorage.setItem("times", JSON.stringify(m));
cc.sys.localStorage.setItem("adPosition", JSON.stringify(s));
cc.sys.localStorage.setItem("achieveProcess", JSON.stringify(p));
u.day % 30 == 0 && this.rentMoney();
}
}
},
calTransport: function() {
c.shopList.forEach(function(e) {
1 == e.status && e.transportList && e.transportList.forEach(function(t, i) {
t.transport -= 10;
if (t.transport <= 0) {
var a = e.transportList.splice(i, 1), o = e.foodList.findIndex(function(e) {
return e.id == a[0].id;
});
e.foodList[o].stock += a[0].stock;
e.saleList.push("您的" + a[0].name + "已送达");
S.publish("transportOver", o, e.foodList[o].stock);
}
});
});
},
setSpeed: function(e, t) {
var i = this.speed / t;
this.unschedule(this.updateTime);
this.schedule(this.updateTime, i);
},
rentMoney: function() {
c.shopList.forEach(function(e) {
if (1 == e.status) {
e.money -= e.debt.interest;
e.debt.month--;
e.debt.month <= 0 && (e.money -= e.debt.money);
}
});
},
refreshOrders: function() {
c.shopList.forEach(function(e) {
if (1 == e.status && e.makeList) {
e.makeList.forEach(function(t, i) {
t.leftTime--;
t.waitTime++;
if (t.leftTime <= 0) {
var a = e.makeList.splice(i, 1);
if (a[0].waitTime >= a[0].maxWait) {
e.saleList.push(a[0].name + ",等太久了，差评+1,<color=#CD7F32>+＄" + (a[0].cost * (e.leftStock / 100)).toFixed(1) + "</color>");
e.famous -= a[0].level;
e.famous <= 0 && (e.famous = 0);
} else if (Math.random() >= .6) {
e.saleList.push(a[0].name + ",还不错，好评+1,<color=#CD7F32>+＄" + (a[0].cost * (e.leftStock / 100)).toFixed(1) + "</color>");
e.famous += a[0].level;
} else e.saleList.push(a[0].name + ",<color=#CD7F32>+＄" + (a[0].cost * (e.leftStock / 100)).toFixed(1) + "</color>");
e.famous >= 1e4 && (e.famous = 1e4);
e.saleList.length > 12 && e.saleList.shift();
e.customer++;
e.freeWork++;
if (e.customerList.length > 0) {
e.freeWork--;
e.makeList.push(e.customerList.shift());
}
}
});
e.customerList.forEach(function(e) {
e.waitTime++;
});
for (;e.freeWork > 0 && e.customerList.length > 0; ) {
e.freeWork--;
e.makeList.push(e.customerList.shift());
}
}
});
},
payForDebt: function() {
c.shopList.forEach(function(e) {
1 == e.status && (e.money -= e.rent / 30);
});
},
unlockFiveSpeed: function() {
var e = this;
cc.log(s);
s.speed ? this.setSpeed(null, 5) : y.showAd(function(t) {
if (t) {
e.setSpeed(null, 5);
s.speed = !0;
o("今天广告剩余" + m.count);
}
});
},
randomWeather: function() {
c.shopList.forEach(function(e) {
e.weather = r[Math.round(Math.random() * (r.length - 1))];
});
},
calShopIncome: function() {},
clearShopDay: function() {
c.shopList.forEach(function(e) {
if (1 == e.status) {
e.income = 0;
e.customer = 0;
e.foodList && e.foodList.forEach(function(e) {
return e.monthSales = 0;
});
e.money -= parseInt(e.rent / 30);
}
});
this.updateShopList();
},
calshopCustomer: function(e) {
var t;
t = e >= 0 && e <= 10 ? 0 : e > 10 && e <= 13 ? .5 : e > 13 && e <= 18 ? 1.5 : 22;
var i = "";
c.shopList.forEach(function(e, a) {
if (1 == e.status && e.foodList) if (e.customerList.length >= 200) i = "人太多了，多雇点人手吧！"; else {
var o = Math.ceil(t * (e.famous / 2e3) * 2 * e.loaction * Math.random() * (10 - e.weather.effect) * (e.foodList.length / e.menuList.length));
o < 0 && (o = 0);
e.customer += o;
for (var n = function() {
if (e.customerList.length >= 200) return {
v: void 0
};
var t = d[e.level - 1], o = e.foodList[Math.round(Math.random() * (e.foodList.length - 1))], n = e.foodList.find(function(e) {
return o.id == e.id;
}), s = e.foodList.findIndex(function(e) {
return e.id == o.id;
});
if (0 == n.stock || 0 == n.state) {
e.famous -= 1;
e.famous <= 0 && (e.famous = 0);
i = n.name + "都没有，做**吧**";
e.saleList.push(i);
e.saleList.length > 12 && e.saleList.shift();
} else {
i = "您有新的订单，请注意查收";
n.stock--;
p.sale++;
window.shopId && window.shopId == e.id && S.publish("shopUpdate", a, s);
var c = {
leftTime: 5,
level: t.level,
cost: o.price,
name: t.name + "下单了" + o.name,
waitTime: 0,
maxWait: 5 * (4 - t.level) + 2
};
e.customerList.push(c);
n.sales++;
n.monthSales++;
e.income += o.price;
e.money += o.price;
}
}, s = 0; s < o; s++) {
var c = n();
if ("object" == typeof c) return c.v;
}
}
});
window.shopId ? this.shopBanner.string = i : this.shopBanner.string = "暂无营业信息";
this.updateShopList();
},
updateShopList: function() {
var e = this, t = 0;
c.shopList.forEach(function(i) {
if (1 == i.status) {
var a = e.shopList.children[t];
if (a) {
a.getChildByName("workers").getComponent(cc.Label).string = "员工：" + i.workers;
a.getChildByName("income").getComponent(cc.Label).string = "收入：" + i.income;
a.getChildByName("status").getComponent(cc.Label).string = "状态：营业中";
a.getChildByName("money").getComponent(cc.Label).string = "账户：" + i.money;
a.getChildByName("customer").getComponent(cc.Label).string = "顾客：" + i.customer;
}
t++;
}
});
},
initShopStock: function() {
cc.sys.localStorage.getItem("shopList") || c.shopList.forEach(function(e) {
e.saleList = [];
});
},
updateStockDelivery: function() {
c.shopList.forEach(function(e) {
e.stock.forEach(function(e) {
e.transport -= 1;
e.transport <= 0 && (e.transport = 0);
});
});
},
randomMenuList: function() {
l.forEach(function(e) {
e.list.forEach(function(t) {
t.transport = 20 * e.level;
t.sales = 0;
t.monthSales = 0;
t.state = 0;
t.unlockFamous = 50 * t.level;
t.unlockMoney = 1e3 * t.level;
});
});
cc.sys.localStorage.getItem("player") || c.shopList.forEach(function(e) {
e.debt = {
money: 0,
month: 0,
interest: 0,
rate: .24
};
e.saleList = [];
e.freeWork = 3;
e.customerList = [];
e.makeList = [];
e.transportList = [];
1 == e.status && (e.menuList = JSON.parse(JSON.stringify(l[e.level - 1].list)));
e.foodList = [];
});
}
});
cc._RF.pop();
}, {
"../ads/ADS": "ADS",
"../ads/video": "video",
"../shop/gameData": "gameData",
"../util/EventServices": "EventServices",
"../util/random": "random",
"./alert": "alert",
"./gameInitData": "gameInitData"
} ],
updater: [ function(e, t, i) {
"use strict";
cc._RF.push(t, "0767agA1FJDQaLGyI8PzKgQ", "updater");
Object.defineProperty(i, "__esModule", {
value: !0
});
var a = cc._decorator, o = a.ccclass, n = a.property;
cc.macro.CLEANUP_IMAGE_CACHE = !1;
cc.dynamicAtlasManager.enabled = !0;
var s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.progress = null;
t.filesprogress = null;
t.tagimg = null;
t.progressbar = null;
t.confirmlayer = null;
t.content = null;
t.sureButton = null;
t.cancelButton = null;
t.manifestUrl = null;
t.maxtryNum = 2;
t._am = null;
t._updating = !1;
t._canRetry = !1;
t._storagePath = "";
t._failCount = 0;
return t;
}
t.prototype.onLoad = function() {
if (!cc.sys.isNative) return this.enter();
this._storagePath = (jsb.fileUtils ? jsb.fileUtils.getWritablePath() : "/") + "hotupdate";
cc.log("热更新路径 : " + this._storagePath);
this.versionCompareHandle = function(e, t) {
cc.log("自定义版本对比函数: version A is " + e + ", version B is " + t);
for (var i = e.split("."), a = t.split("."), o = 0; o < i.length; ++o) {
var n = parseInt(i[o]), s = parseInt(a[o] || 0);
if (n !== s) return n - s;
}
return a.length > i.length ? -1 : 0;
};
this._am = new jsb.AssetsManager("", this._storagePath, this.versionCompareHandle);
this.progress.string = "检查服务器版本...";
cc.sys.os === cc.sys.OS_ANDROID && this._am.setMaxConcurrentTask(2);
this.filesprogress.string = "";
this.progressbar.progress = 0;
this.checkUpdate();
};
t.prototype.checkCb = function(e) {
cc.log("Code: " + e.getEventCode());
var t = !1, i = !1;
switch (e.getEventCode()) {
case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
this.progress.string = "本地没有manifest文件.";
break;

case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
t = !0;
this.progress.string = "下载manifest文件失败.";
break;

case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
t = !0;
this.progress.string = "manifest文件格式有误.";
break;

case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
this.progress.string = "已经是最新版本.";
this.enter();
break;

case jsb.EventAssetsManager.NEW_VERSION_FOUND:
this.progress.string = "找到新版本.";
this.progressbar.progress = 0;
i = !0;
break;

case jsb.EventAssetsManager.LOCAL_VERSION_OUT_OF_DATE:
this.progress.string = "当前版本太老.";
this.progressbar.progress = 100;
this.showConfirmLayer("当前版本太老需要更新到最新版本才能进入游戏！", this.end, this.end);
break;

default:
return;
}
t && this.showConfirmLayer("更新失败是否重试？", this.onSureFailButtonClick, this.onCancelFailButtonClick);
this._am.setEventCallback(null);
this._checkListener = null;
this._updating = !1;
i && this.hotUpdate();
};
t.prototype.updateCb = function(e) {
var t = !1, i = !1;
switch (e.getEventCode()) {
case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
this.progress.string = "本地没有manifest文件.";
i = !0;
break;

case jsb.EventAssetsManager.UPDATE_PROGRESSION:
this.progressbar.progress = e.getPercent();
this.progress.string = "版本更新中..." + (100 * e.getPercent()).toFixed(2) + "%";
var a = e.getDownloadedBytes(), o = e.getTotalBytes();
cc.log("进度-----\x3e" + a + "/" + o);
var n = "", s = "";
if (a > 1048576) {
a = (a / 1024 / 1024).toFixed(2);
n = "M";
} else {
a = Math.ceil(a / 1024);
n = "KB";
}
if (o > 1048576) {
o = (o / 1024 / 1024).toFixed(2);
s = "M";
} else {
o = Math.ceil(o / 1024);
s = "KB";
}
this.filesprogress.string = a + n + "/" + o + s + " （" + e.getDownloadedFiles() + "/" + e.getTotalFiles() + "）";
this.tagimg.node.x = -this.progressbar.totalLength / 2 + this.progressbar.totalLength * this.progressbar.progress;
e.getMessage();
break;

case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
this.progress.string = "下载manifest文件失败.";
break;

case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
this.progress.string = "manifest文件格式有误.";
i = !0;
break;

case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
this.progress.string = "已经是最新版本.";
this.progressbar.progress = 1;
i = !0;
this.enter();
break;

case jsb.EventAssetsManager.UPDATE_FINISHED:
this.progress.string = "更新完成.";
t = !0;
break;

case jsb.EventAssetsManager.UPDATE_FAILED:
this.progress.string = "更新失败." + e.getMessage();
this._updating = !1;
this._canRetry = !0;
this.showConfirmLayer("有部分文件更新失败是否重试？", this.onSureTryButtonClick, this.onCancelTryButtonClick);
break;

case jsb.EventAssetsManager.ERROR_UPDATING:
this.progress.string = "文件更新失败：" + e.getAssetId() + ", " + e.getMessage();
break;

case jsb.EventAssetsManager.ERROR_DECOMPRESS:
this.progress.string = "文件解压失败：" + e.getMessage();
}
if (i) {
this._am.setEventCallback(null);
this._updateListener = null;
this._updating = !1;
}
if (t) {
this._am.setEventCallback(null);
this._updateListener = null;
var c = jsb.fileUtils.getSearchPaths(), r = this._am.getLocalManifest().getSearchPaths();
console.log(JSON.stringify(r));
Array.prototype.unshift.apply(c, r);
cc.sys.localStorage.setItem("HotUpdateSearchPaths", JSON.stringify(c));
jsb.fileUtils.setSearchPaths(c);
cc.log("---------------------------------------------------------重启游戏");
this.progress.string = "请重启游戏";
}
};
t.prototype.enter = function() {
cc.log("进入游戏");
cc.director.loadScene("main");
};
t.prototype.retry = function() {
if (!this._updating && this._canRetry) {
this._canRetry = !1;
this.progress.string = "重试中...";
this._am.downloadFailedAssets();
}
};
t.prototype.checkUpdate = function() {
if (!this._updating) {
if (this._am.getState() === jsb.AssetsManager.State.UNINITED) {
var e = this.manifestUrl.nativeUrl;
cc.loader.md5Pipe && (e = cc.loader.md5Pipe.transformURL(e));
this._am.loadLocalManifest(e);
}
if (this._am.getLocalManifest() && this._am.getLocalManifest().isLoaded()) {
this._am.setEventCallback(this.checkCb.bind(this));
this._am.checkUpdate();
this._updating = !0;
} else this.progress.string = "加载本地manifest文件失败.";
}
};
t.prototype.hotUpdate = function() {
if (this._am && !this._updating) {
this._am.setEventCallback(this.updateCb.bind(this));
if (this._am.getState() === jsb.AssetsManager.State.UNINITED) {
var e = this.manifestUrl.nativeUrl;
cc.loader.md5Pipe && (e = cc.loader.md5Pipe.transformURL(e));
this._am.loadLocalManifest(e);
}
var t = (this._am.getTotalBytes() / 1048576).toFixed(2);
cc.log("总共需要更新---------\x3e" + t);
Number(t) > 5 ? this.showConfirmLayer("检查到您有<color=#0fffff>" + t + "M更新</color>是否更新？", this.onSureButtonClick, this.onCancelButtonClick) : this.startUpdate();
}
};
t.prototype.startUpdate = function() {
this._failCount = 0;
this._am.update();
this._updating = !0;
};
t.prototype.showConfirmLayer = function(e, t, i) {
var a = this;
this.confirmlayer.active = !0;
e && (this.content.string = e);
this.sureButton.node.off("click");
this.cancelButton.node.off("click");
this.sureButton.node.on("click", function() {
a.hideConfirmLayer();
t && t.call(a);
}, this);
this.cancelButton.node.on("click", function() {
a.hideConfirmLayer();
i && i.call(a);
}, this);
};
t.prototype.hideConfirmLayer = function() {
this.confirmlayer.active = !1;
};
t.prototype.onSureButtonClick = function() {
this.startUpdate();
};
t.prototype.onCancelButtonClick = function() {
this.end();
};
t.prototype.onSureTryButtonClick = function() {
this.retry();
};
t.prototype.onCancelTryButtonClick = function() {
this.end();
};
t.prototype.onSureFailButtonClick = function() {
this.restart();
};
t.prototype.onCancelFailButtonClick = function() {
this.end();
};
t.prototype.end = function() {
cc.director.loadScene("main");
};
t.prototype.restart = function() {
this.scheduleOnce(function() {
cc.log("------------重启了");
cc.game.restart();
}, 1);
};
t.prototype.onDestroy = function() {
if (this._updateListener) {
this._am.setEventCallback(null);
this._updateListener = null;
}
};
__decorate([ n(cc.Label) ], t.prototype, "progress", void 0);
__decorate([ n(cc.Label) ], t.prototype, "filesprogress", void 0);
__decorate([ n(cc.Sprite) ], t.prototype, "tagimg", void 0);
__decorate([ n(cc.ProgressBar) ], t.prototype, "progressbar", void 0);
__decorate([ n(cc.Node) ], t.prototype, "confirmlayer", void 0);
__decorate([ n(cc.RichText) ], t.prototype, "content", void 0);
__decorate([ n(cc.Button) ], t.prototype, "sureButton", void 0);
__decorate([ n(cc.Button) ], t.prototype, "cancelButton", void 0);
__decorate([ n(cc.Asset) ], t.prototype, "manifestUrl", void 0);
__decorate([ n(Number) ], t.prototype, "maxtryNum", void 0);
return __decorate([ o ], t);
}(cc.Component);
i.default = s;
cc._RF.pop();
}, {} ],
video: [ function(e, t) {
"use strict";
cc._RF.push(t, "c480eorxYtIApqp2nFPlkG/", "video");
var i = e("../game/alert").msg, a = e("../shop/gameData").times;
e("../AnyThinkAds/ATRewardedVideoJSSDK");
var o = new (function() {
function e() {
this.placementID = "b60cd3c15b2923";
this.callback = null;
}
var t = e.prototype;
t.init = function() {
if (cc.sys.isNative) {
ATRewardedVideoJSSDK.setAdListener(this);
this.loadAds();
}
};
t.loadAds = function() {
var e = {};
e[ATRewardedVideoJSSDK.userIdKey] = "test_user_id";
e[ATRewardedVideoJSSDK.userDataKey] = "test_user_data";
ATRewardedVideoJSSDK.loadRewardedVideo(this.placementID, e);
};
t.showAd = function(e) {
if (a.count <= 0) i("今天的广告用完了噢,一天4次"); else {
this.checkReady || this.loadAds();
ATRewardedVideoJSSDK.showAdInScenario(this.placementID, "f60cd3c4679d92");
a.count--;
this.callback = e;
}
};
t.checkReady = function() {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::checkReady()   " + !!ATRewardedVideoJSSDK.hasAdReady(this.placementID));
var e = ATRewardedVideoJSSDK.checkAdStatus(this.placementID);
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::checkAdStatus()   " + e);
return !!ATRewardedVideoJSSDK.hasAdReady(this.placementID);
};
t.onRewardedVideoAdLoaded = function(e) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdLoaded(" + e + ")");
};
t.onRewardedVideoAdFailed = function(e, t) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdFailed(" + e + ", " + t + ")");
};
t.onRewardedVideoAdPlayStart = function(e, t) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayStart(" + e + ", " + t + ")");
};
t.onRewardedVideoAdPlayEnd = function(e, t) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayEnd(" + e + ", " + t + ")");
};
t.onRewardedVideoAdPlayFailed = function(e, t, i) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed(" + e + ", " + t + ", " + i + ")");
};
t.onRewardedVideoAdClosed = function() {
this.loadAds();
};
t.onRewardedVideoAdPlayClicked = function(e, t) {
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayClicked(" + e + ", " + t + ")");
};
t.onReward = function(e, t) {
this.callback(t);
cc.log("播放完成");
ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onReward(" + e + ", " + t + ")");
};
return e;
}())();
o.onRewardedVideoAdClosed, o.onRewardedVideoAdPlayClicked, o.onReward;
cc.sys.isNative;
t.exports.videoAds = o;
cc._RF.pop();
}, {
"../AnyThinkAds/ATRewardedVideoJSSDK": "ATRewardedVideoJSSDK",
"../game/alert": "alert",
"../shop/gameData": "gameData"
} ]
}, {}, [ "cloud", "ATBannerJSSDK", "ATInterstitialJSSDK", "ATJSSDK", "ATNativeJSSDK", "ATRewardedVideoJSSDK", "ATAndroidBannerJS", "ATAndroidInterstitialJS", "ATAndroidJS", "ATAndroidNativeJS", "ATAndroidRewardedVideoJS", "ATiOSBannerJS", "ATiOSInterstitialJS", "ATiOSJS", "ATiOSNativeJS", "ATiOSRewardedVideoJS", "ListItem", "ListViewAdapter", "achieveItem", "ADS", "video", "game", "alert", "audio", "gameConfig", "gameInitData", "gameManeger", "loading", "timer", "updater", "fujian", "operation", "buyMaterial", "market", "marketPanel", "material", "player", "rank", "HotUpdate", "UpdatePanel", "enterScene", "startScene", "foodItem", "gameData", "menuItem", "menuManeger", "saleManager", "shop", "shopDetail", "shopBank", "shopFix", "shopManager", "stockManager", "shopShow", "stockItem", "support", "tabshow", "EventServices", "gameResources", "network", "random" ]);